[Driver][test] Fix cc1-spawnprocess.c
authorFangrui Song <i@maskray.me>
Sat, 14 Nov 2020 17:53:34 +0000 (09:53 -0800)
committerFangrui Song <i@maskray.me>
Sat, 14 Nov 2020 17:53:34 +0000 (09:53 -0800)
clang/test/Driver/cc1-spawnprocess.c

index 7f6dad6..a6ff7d1 100644 (file)
@@ -42,6 +42,7 @@
 // RUN: %clang -fintegrated-cc1 -c %t1.cpp %t2.cpp %t3.cpp -### 2>&1 | FileCheck %s --check-prefix=NO
 
 // -fintegrated-cc1 works with cc1as.
+// macOS triples have an extra -x assembler-with-cpp job so (in-process) is not triggered.
 // RUN: echo > %t.s
-// RUN: %clang -fintegrated-cc1 -fintegrated-as -c -### %t.s 2>&1 | FileCheck %s --check-prefix=YES
-// RUN: %clang -fno-integrated-cc1 -c -### %t.s 2>&1 | FileCheck %s --check-prefix=NO
+// RUN: %clang --target=x86_64-linux -fintegrated-cc1 -fintegrated-as -c -### %t.s 2>&1 | FileCheck %s --check-prefix=YES
+// RUN: %clang --target=x86_64-linux -fno-integrated-cc1 -c -### %t.s 2>&1 | FileCheck %s --check-prefix=NO