History

darwin: disable compiler checks

When configuring with --enable-external-build the .mk files are not expected to work. This avoids some spurious warnings when configuring for darwin targets on other platforms.

Johann committed 7 years ago

Commit 70d8d721 parent 553c68d1 file · +51 −49Browse files

Unified · Split

build/make/configure.sh+51−49
@@ -1081,60 +1081,62 @@ EOF · 1080 unmodified lines
10811081 ;;
10821082
10831083 darwin*)
1084− XCRUN_FIND="xcrun --sdk iphoneos --find"
1085− CXX="$(${XCRUN_FIND} clang++)"
1086− CC="$(${XCRUN_FIND} clang)"
1087− AR="$(${XCRUN_FIND} ar)"
1088− AS="$(${XCRUN_FIND} as)"
1089− STRIP="$(${XCRUN_FIND} strip)"
1090− NM="$(${XCRUN_FIND} nm)"
1091− RANLIB="$(${XCRUN_FIND} ranlib)"
1092− AS_SFX=.S
1093− LD="${CXX:-$(${XCRUN_FIND} ld)}"
1094−
1095− # ASFLAGS is written here instead of using check_add_asflags
1096− # because we need to overwrite all of ASFLAGS and purge the
1097− # options that were put in above
1098− ASFLAGS="-arch ${tgt_isa} -g"
1099−
1100− add_cflags -arch ${tgt_isa}
1101− add_ldflags -arch ${tgt_isa}
1102−
1103− alt_libc="$(show_darwin_sdk_path iphoneos)"
1104− if [ -d "${alt_libc}" ]; then
1105− add_cflags -isysroot ${alt_libc}
1106− fi
1084+ if disabled external_build; then
1085+ XCRUN_FIND="xcrun --sdk iphoneos --find"
1086+ CXX="$(${XCRUN_FIND} clang++)"
1087+ CC="$(${XCRUN_FIND} clang)"
1088+ AR="$(${XCRUN_FIND} ar)"
1089+ AS="$(${XCRUN_FIND} as)"
1090+ STRIP="$(${XCRUN_FIND} strip)"
1091+ NM="$(${XCRUN_FIND} nm)"
1092+ RANLIB="$(${XCRUN_FIND} ranlib)"
1093+ AS_SFX=.S
1094+ LD="${CXX:-$(${XCRUN_FIND} ld)}"
11071095
1108− if [ "${LD}" = "${CXX}" ]; then
1109− add_ldflags -miphoneos-version-min="${IOS_VERSION_MIN}"
1110− else
1111− add_ldflags -ios_version_min "${IOS_VERSION_MIN}"
1112− fi
1096+ # ASFLAGS is written here instead of using check_add_asflags
1097+ # because we need to overwrite all of ASFLAGS and purge the
1098+ # options that were put in above
1099+ ASFLAGS="-arch ${tgt_isa} -g"
1100+
1101+ add_cflags -arch ${tgt_isa}
1102+ add_ldflags -arch ${tgt_isa}
1103+
1104+ alt_libc="$(show_darwin_sdk_path iphoneos)"
1105+ if [ -d "${alt_libc}" ]; then
1106+ add_cflags -isysroot ${alt_libc}
1107+ fi
11131108
1114− for d in lib usr/lib usr/lib/system; do
1115− try_dir="${alt_libc}/${d}"
1116− [ -d "${try_dir}" ] && add_ldflags -L"${try_dir}"
1117− done
1118−
1119− case ${tgt_isa} in
1120− armv7|armv7s|armv8|arm64)
1121− if enabled neon && ! check_xcode_minimum_version; then
1122− soft_disable neon
1123− log_echo " neon disabled: upgrade Xcode (need v6.3+)."
1124− if enabled neon_asm; then
1125− soft_disable neon_asm
1126− log_echo " neon_asm disabled: upgrade Xcode (need v6.3+)."
1109+ if [ "${LD}" = "${CXX}" ]; then
1110+ add_ldflags -miphoneos-version-min="${IOS_VERSION_MIN}"
1111+ else
1112+ add_ldflags -ios_version_min "${IOS_VERSION_MIN}"
1113+ fi
1114+
1115+ for d in lib usr/lib usr/lib/system; do
1116+ try_dir="${alt_libc}/${d}"
1117+ [ -d "${try_dir}" ] && add_ldflags -L"${try_dir}"
1118+ done
1119+
1120+ case ${tgt_isa} in
1121+ armv7|armv7s|armv8|arm64)
1122+ if enabled neon && ! check_xcode_minimum_version; then
1123+ soft_disable neon
1124+ log_echo " neon disabled: upgrade Xcode (need v6.3+)."
1125+ if enabled neon_asm; then
1126+ soft_disable neon_asm
1127+ log_echo " neon_asm disabled: upgrade Xcode (need v6.3+)."
1128+ fi
11271129 fi
1128− fi
1129− ;;
1130− esac
1130+ ;;
1131+ esac
11311132
1132− asm_conversion_cmd="${source_path}/build/make/ads2gas_apple.pl"
1133+ asm_conversion_cmd="${source_path}/build/make/ads2gas_apple.pl"
11331134
1134− if [ "$(show_darwin_sdk_major_version iphoneos)" -gt 8 ]; then
1135− check_add_cflags -fembed-bitcode
1136− check_add_asflags -fembed-bitcode
1137− check_add_ldflags -fembed-bitcode
1135+ if [ "$(show_darwin_sdk_major_version iphoneos)" -gt 8 ]; then
1136+ check_add_cflags -fembed-bitcode
1137+ check_add_asflags -fembed-bitcode
1138+ check_add_ldflags -fembed-bitcode
1139+ fi
11381140 fi
11391141 ;;
11401142

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t