ref: 95a71057f09f6b94e08ad2206ee8856a5695cf4f
parent: 7b5a57449ba07f35cc400516d311ce88c49dce9a
author: Johann <[email protected]>
date: Mon Mar 12 10:54:48 EDT 2018
autodetect macOS High Sierra Add darwin17 target Change-Id: I349a2f6a0396c59269f567a03ae813e3e59ccefa
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -757,6 +757,10 @@
tgt_isa=x86_64
tgt_os=darwin16
;;
+ *darwin17*)
+ tgt_isa=x86_64
+ tgt_os=darwin17
+ ;;
x86_64*mingw32*)
tgt_os=win64
;;
@@ -884,6 +888,10 @@
*-darwin16-*)
add_cflags "-mmacosx-version-min=10.12"
add_ldflags "-mmacosx-version-min=10.12"
+ ;;
+ *-darwin17-*)
+ add_cflags "-mmacosx-version-min=10.13"
+ add_ldflags "-mmacosx-version-min=10.13"
;;
*-iphonesimulator-*)
add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}"
--- a/configure
+++ b/configure
@@ -129,6 +129,7 @@
all_platforms="${all_platforms} x86-darwin14-gcc"
all_platforms="${all_platforms} x86-darwin15-gcc"
all_platforms="${all_platforms} x86-darwin16-gcc"
+all_platforms="${all_platforms} x86-darwin17-gcc"
all_platforms="${all_platforms} x86-iphonesimulator-gcc"
all_platforms="${all_platforms} x86-linux-gcc"
all_platforms="${all_platforms} x86-linux-icc"
@@ -149,6 +150,7 @@
all_platforms="${all_platforms} x86_64-darwin14-gcc"
all_platforms="${all_platforms} x86_64-darwin15-gcc"
all_platforms="${all_platforms} x86_64-darwin16-gcc"
+all_platforms="${all_platforms} x86_64-darwin17-gcc"
all_platforms="${all_platforms} x86_64-iphonesimulator-gcc"
all_platforms="${all_platforms} x86_64-linux-gcc"
all_platforms="${all_platforms} x86_64-linux-icc"