From: Benjamin Kramer Date: Fri, 29 Jul 2016 13:07:09 +0000 (+0000) Subject: Make test not fail on hosts where the default omp library is gomp. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f90fc43d4d7518e454793a5bb6b6a882e7e01d9a;p=clang Make test not fail on hosts where the default omp library is gomp. 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 --- diff --git a/test/Driver/offloading-interoperability.c b/test/Driver/offloading-interoperability.c index dbef4624fb..65969fa281 100644 --- a/test/Driver/offloading-interoperability.c +++ b/test/Driver/offloading-interoperability.c @@ -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"