r209808 - Fixing a test case which was failing the MSVC build bots. When -std isn't specified with an MSVC build, it defaults to -std=c++11, which overrides the -x cuda option. In turn, this causes all CUDA language option checks to fail.
Aaron Ballman
aaron at aaronballman.com
Thu May 29 05:59:11 PDT 2014
Author: aaronballman
Date: Thu May 29 07:59:11 2014
New Revision: 209808
URL: http://llvm.org/viewvc/llvm-project?rev=209808&view=rev
Log:
Fixing a test case which was failing the MSVC build bots. When -std isn't specified with an MSVC build, it defaults to -std=c++11, which overrides the -x cuda option. In turn, this causes all CUDA language option checks to fail.
This fix is possibly temporary while we determine whether -x cuda should be considered along with -std=c++11 when setting language options.
Modified:
cfe/trunk/test/Index/attributes-cuda.cu
Modified: cfe/trunk/test/Index/attributes-cuda.cu
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/attributes-cuda.cu?rev=209808&r1=209807&r2=209808&view=diff
==============================================================================
--- cfe/trunk/test/Index/attributes-cuda.cu (original)
+++ cfe/trunk/test/Index/attributes-cuda.cu Thu May 29 07:59:11 2014
@@ -1,4 +1,4 @@
-// RUN: c-index-test -test-load-source all -x cuda %s | FileCheck %s
+// RUN: c-index-test -test-load-source all -x cuda -std=cuda %s | FileCheck %s
__attribute__((device)) void f_device();
__attribute__((global)) void f_global();
More information about the cfe-commits
mailing list