configure.sh: fix arm64-darwin-gcc match
authorJames Zern <jzern@google.com>
Tue, 29 Sep 2020 17:38:41 +0000 (10:38 -0700)
committerJames Zern <jzern@google.com>
Tue, 29 Sep 2020 17:38:41 +0000 (10:38 -0700)
after:
979e27c97 configure: add darwin20 support

make the condition more specific by including the trailing -gcc (-*)

Change-Id: I78f481b6c5ad9137e6b6973198e8671e806ee82c

build/make/configure.sh

index 3c09aa3..91a64b5 100644 (file)
@@ -852,7 +852,7 @@ process_common_toolchain() {
   # Handle darwin variants. Newer SDKs allow targeting older
   # platforms, so use the newest one available.
   case ${toolchain} in
-    arm*-darwin-)
+    arm*-darwin-*)
       add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}"
       iphoneos_sdk_dir="$(show_darwin_sdk_path iphoneos)"
       if [ -d "${iphoneos_sdk_dir}" ]; then