]> granicus.if.org Git - clang/commitdiff
Make test not fail on hosts where the default omp library is gomp.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 29 Jul 2016 13:07:09 +0000 (13:07 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 29 Jul 2016 13:07:09 +0000 (13:07 +0000)
This is the case on some linuxes, just force libomp so we get the
desired results.

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

test/Driver/offloading-interoperability.c

index dbef4624fb206bf5c4f17d0156f248630c12e7c3..65969fa2811f48abe6df2da4e71c6a488b910288 100644 (file)
@@ -5,7 +5,7 @@
 //
 // Verify that CUDA device commands do not get OpenMP flags.
 //
-// RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp %s 2>&1 \
+// RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
 // RUN: | FileCheck %s --check-prefix NO-OPENMP-FLAGS-FOR-CUDA-DEVICE
 //
 // NO-OPENMP-FLAGS-FOR-CUDA-DEVICE:      clang{{.*}}" "-cc1" "-triple" "nvptx64-nvidia-cuda"