| @@ -774,6 +774,10 @@ process_common_toolchain() { · 773 unmodified lines |
| 774 | tgt_isa=x86_64 | 774 | tgt_isa=x86_64 |
| 775 | tgt_os=`echo $gcctarget | sed 's/.*\(darwin1[0-9]\).*/\1/'` | 775 | tgt_os=`echo $gcctarget | sed 's/.*\(darwin1[0-9]\).*/\1/'` |
| 776 | ;; | 776 | ;; |
| | 777 | *darwin20*) |
| | 778 | tgt_isa=`uname -m` |
| | 779 | tgt_os=`echo $gcctarget | sed 's/.*\(darwin2[0-9]\).*/\1/'` |
| | 780 | ;; |
| 777 | x86_64*mingw32*) | 781 | x86_64*mingw32*) |
| 778 | tgt_os=win64 | 782 | tgt_os=win64 |
| 779 | ;; | 783 | ;; |
| @@ -848,7 +852,7 @@ process_common_toolchain() { · 68 unmodified lines |
| 848 | # Handle darwin variants. Newer SDKs allow targeting older | 852 | # Handle darwin variants. Newer SDKs allow targeting older |
| 849 | # platforms, so use the newest one available. | 853 | # platforms, so use the newest one available. |
| 850 | case ${toolchain} in | 854 | case ${toolchain} in |
| 851 | arm*-darwin*) | 855 | arm*-darwin-) |
| 852 | add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}" | 856 | add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}" |
| 853 | iphoneos_sdk_dir="$(show_darwin_sdk_path iphoneos)" | 857 | iphoneos_sdk_dir="$(show_darwin_sdk_path iphoneos)" |
| 854 | if [ -d "${iphoneos_sdk_dir}" ]; then | 858 | if [ -d "${iphoneos_sdk_dir}" ]; then |
| @@ -856,7 +860,7 @@ process_common_toolchain() { · 1 unmodified line |
| 856 | add_ldflags "-isysroot ${iphoneos_sdk_dir}" | 860 | add_ldflags "-isysroot ${iphoneos_sdk_dir}" |
| 857 | fi | 861 | fi |
| 858 | ;; | 862 | ;; |
| 859 | x86*-darwin*) | 863 | *-darwin*) |
| 860 | osx_sdk_dir="$(show_darwin_sdk_path macosx)" | 864 | osx_sdk_dir="$(show_darwin_sdk_path macosx)" |
| 861 | if [ -d "${osx_sdk_dir}" ]; then | 865 | if [ -d "${osx_sdk_dir}" ]; then |
| 862 | add_cflags "-isysroot ${osx_sdk_dir}" | 866 | add_cflags "-isysroot ${osx_sdk_dir}" |
| @@ -914,6 +918,10 @@ process_common_toolchain() { · 51 unmodified lines |
| 914 | add_cflags "-mmacosx-version-min=10.15" | 918 | add_cflags "-mmacosx-version-min=10.15" |
| 915 | add_ldflags "-mmacosx-version-min=10.15" | 919 | add_ldflags "-mmacosx-version-min=10.15" |
| 916 | ;; | 920 | ;; |
| | 921 | *-darwin20-*) |
| | 922 | add_cflags "-mmacosx-version-min=10.16" |
| | 923 | add_ldflags "-mmacosx-version-min=10.16" |
| | 924 | ;; |
| 917 | *-iphonesimulator-*) | 925 | *-iphonesimulator-*) |
| 918 | add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}" | 926 | add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}" |
| 919 | add_ldflags "-miphoneos-version-min=${IOS_VERSION_MIN}" | 927 | add_ldflags "-miphoneos-version-min=${IOS_VERSION_MIN}" |
| @@ -1087,7 +1095,7 @@ EOF · 167 unmodified lines |
| 1087 | soft_enable unit_tests | 1095 | soft_enable unit_tests |
| 1088 | ;; | 1096 | ;; |
| 1089 | | 1097 | |
| 1090 | darwin*) | 1098 | darwin) |
| 1091 | if ! enabled external_build; then | 1099 | if ! enabled external_build; then |
| 1092 | XCRUN_FIND="xcrun --sdk iphoneos --find" | 1100 | XCRUN_FIND="xcrun --sdk iphoneos --find" |
| 1093 | CXX="$(${XCRUN_FIND} clang++)" | 1101 | CXX="$(${XCRUN_FIND} clang++)" |