]> granicus.if.org Git - clang/commitdiff
[CUDA] Add -target to cuda-constructor-alias.cu test so it doesn't fail on Mac.
authorJustin Lebar <jlebar@google.com>
Mon, 25 Jan 2016 22:52:31 +0000 (22:52 +0000)
committerJustin Lebar <jlebar@google.com>
Mon, 25 Jan 2016 22:52:31 +0000 (22:52 +0000)
The test was checking that we passed -mconstructor-alias to host
compilation, but that explicitly shouldn't happen on Mac.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258737 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/cuda-constructor-alias.cu

index 76f8e4fc90b27aa9e0ee2707be22042ba0244ecf..e0fd329abf62705501626ba4f4d14eaffc196fa4 100644 (file)
@@ -5,7 +5,7 @@
 // Check that we don't pass -mconstructor-aliases to CUDA device-side
 // compilation, but we do pass it to host-side compilation.
 
-// RUN: %clang -### %s 2>&1 | FileCheck %s
+// RUN: %clang -### -target x86_64-linux-gnu %s 2>&1 | FileCheck %s
 // CHECK: "-cc1"
 // CHECK-NOT: "-fcuda-is-device" {{.*}}"-mconstructor-aliases"
 // CHECK-NOT: "-mconstructor-aliases" {{.*}}"-fcuda-is-device"