warning: overriding '-mmacosx-version-min=10.14' option
kinke
noone at nowhere.com
Sun Jan 12 12:02:09 UTC 2020
On Saturday, 11 January 2020 at 11:15:52 UTC, Jacob Carlborg
wrote:
> I get warnings like this:
>
> clang: warning: overriding '-mmacosx-version-min=10.14' option
> with '--target=arm64-apple-ios12.0' [-Woverriding-t-option]
>
> Looking at the `build.ninja` file that is generated there are
> 72 targets (or whatever they're called) that contains the
> following:
>
> FLAGS = -DHAVE_UNISTD_H -isysroot $MAC_OSX_SDK_PATH
> -mmacosx-version-min=10.14 -target arm64-apple-ios12.0
> -isysroot $IOS_SDK_PATH
>
> (I've replaced the actual SDK paths with $MAC_OSX_SDK_PATH and
> $IOS_SDK_PATH to reduce the text).
Without specifying a C cross-compiler directly, either via
setting the CC env variable or by using a CMake toolchain file,
CMake will probe and configure the compiler for the host.
There are probably guides for how to set up CMake
cross-compilation from macOS to iOS. There might even be some
builtin CMake support in the meantime:
https://gitlab.kitware.com/cmake/cmake/issues/17870
> --cFlags='-target arm64-apple-ios12.0;-isysroot $IOS_SDK_PATH' \
> --linkerFlags='-target arm64-apple-ios12.0;-isysroot
> $IOS_SDK_PATH' \
The spaces here should be replaced by semicolons.
More information about the digitalmars-d-ldc
mailing list