]> granicus.if.org Git - clang/commitdiff
Tweak test to pass when using a non-integrated assembler.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 16 Apr 2019 01:44:53 +0000 (01:44 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 16 Apr 2019 01:44:53 +0000 (01:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358470 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/modules.cpp

index 4f7439cc599a9f9c721cd54f76650d3782081996..90f334a2813efe90d4d40dc8969127bc39eb8031 100644 (file)
@@ -14,8 +14,8 @@
 //
 // RUN: %clang -std=c++2a %t/module.pcm -c -o %t/module.pcm.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-COMPILE
 //
-// CHECK-COMPILE: -cc1 {{.*}} -emit-obj
-// CHECK-COMPILE-SAME: -o {{.*}}.pcm.o
+// CHECK-COMPILE: -cc1 {{.*}} {{-emit-obj|-S}}
+// CHECK-COMPILE-SAME: -o {{.*}}.{{pcm.o|s}}
 // CHECK-COMPILE-SAME: -x pcm
 // CHECK-COMPILE-SAME: {{.*}}.pcm
 
@@ -24,9 +24,9 @@
 // RUN: %clang -std=c++2a -fmodule-file=%t/module.pcm -Dexport= %s -c -o %t/module.o -v 2>&1 | FileCheck %s --check-prefix=CHECK-USE
 //
 // CHECK-USE: -cc1
-// CHECK-USE-SAME: -emit-obj
+// CHECK-USE-SAME: {{-emit-obj|-S}}
 // CHECK-USE-SAME: -fmodule-file={{.*}}.pcm
-// CHECK-USE-SAME: -o {{.*}}.o{{"?}} {{.*}}-x c++
+// CHECK-USE-SAME: -o {{.*}}.{{o|s}}{{"?}} {{.*}}-x c++
 // CHECK-USE-SAME: modules.cpp
 
 // Check combining precompile and compile steps works.