[clang] e91b234 - [mac/arm] Fix test/Driver/darwin-sdk-version.c on arm macs

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 20 19:33:40 PST 2020


Author: Nico Weber
Date: 2020-11-20T22:32:31-05:00
New Revision: e91b2344ad7294c47d8b10b3a84e962bc3ed4160

URL: https://github.com/llvm/llvm-project/commit/e91b2344ad7294c47d8b10b3a84e962bc3ed4160
DIFF: https://github.com/llvm/llvm-project/commit/e91b2344ad7294c47d8b10b3a84e962bc3ed4160.diff

LOG: [mac/arm] Fix test/Driver/darwin-sdk-version.c on arm macs

Two invocations in this test used `-m64`, which on an arm mac means
arm64 in the triple, not x86_64.

Added: 
    

Modified: 
    clang/test/Driver/darwin-sdk-version.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/darwin-sdk-version.c b/clang/test/Driver/darwin-sdk-version.c
index 9c1eec0ee43f..e95103b7cfb5 100644
--- a/clang/test/Driver/darwin-sdk-version.c
+++ b/clang/test/Driver/darwin-sdk-version.c
@@ -30,8 +30,8 @@
 // RUN:   | FileCheck --check-prefixes=NO_VERSION,ERROR %s
 
 // CHECK: -target-sdk-version=10.14
-// INFER_SDK_VERSION: "-triple" "x86_64-apple-macosx10.10.0"
+// INFER_SDK_VERSION: "-triple" "{{arm64|x86_64}}-apple-macosx10.10.0"
 // INFER_SDK_VERSION-SAME: -target-sdk-version=10.10
-// INFER_DEPLOYMENT_TARGET_VERSION: "-triple" "x86_64-apple-macosx10.8.0"
+// INFER_DEPLOYMENT_TARGET_VERSION: "-triple" "{{arm64|x86_64}}-apple-macosx10.8.0"
 // NO_VERSION-NOT: target-sdk-version
 // ERROR: warning: SDK settings were ignored as 'SDKSettings.json' could not be parsed


        


More information about the cfe-commits mailing list