From: Jordan Rupprecht Date: Thu, 21 Mar 2019 19:13:22 +0000 (+0000) Subject: [clang][OpenMP] Fix another test when using libgomp. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa23c03a84ca290bab40b6da61aea9b1821d9c44;p=clang [clang][OpenMP] Fix another test when using libgomp. Similarly to r356614, -fopenmp=libomp needs to be used for some omp-related AST matching. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356700 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ASTMatchers/ASTMatchersTest.h b/unittests/ASTMatchers/ASTMatchersTest.h index 3f3118c2ef..78c551f806 100644 --- a/unittests/ASTMatchers/ASTMatchersTest.h +++ b/unittests/ASTMatchers/ASTMatchersTest.h @@ -237,13 +237,13 @@ testing::AssertionResult notMatchesWithCuda(const std::string &Code, template testing::AssertionResult matchesWithOpenMP(const std::string &Code, const T &AMatcher) { - return matchesConditionally(Code, AMatcher, true, "-fopenmp"); + return matchesConditionally(Code, AMatcher, true, "-fopenmp=libomp"); } template testing::AssertionResult notMatchesWithOpenMP(const std::string &Code, const T &AMatcher) { - return matchesConditionally(Code, AMatcher, false, "-fopenmp"); + return matchesConditionally(Code, AMatcher, false, "-fopenmp=libomp"); } template