From aa23c03a84ca290bab40b6da61aea9b1821d9c44 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Thu, 21 Mar 2019 19:13:22 +0000 Subject: [PATCH] [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 --- unittests/ASTMatchers/ASTMatchersTest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0