From: Jordan Rupprecht Date: Wed, 20 Mar 2019 21:01:56 +0000 (+0000) Subject: [clang][OpenMP] Fix build when using libgomp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62984c5f4a19d8d48b90b127f027fa1c7260843c;p=clang [clang][OpenMP] Fix build when using libgomp Summary: rL356570 introduced a test which only passes with the default openmp library, libomp, and fails with other openmp libraries, such as libgomp. Explicitly choose libomp. Reviewers: lebedev.ri Subscribers: guansong, jdoerfert, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D59609 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356614 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/AST/OMPStructuredBlockTest.cpp b/unittests/AST/OMPStructuredBlockTest.cpp index d1138dfe41..4cb51c0a87 100644 --- a/unittests/AST/OMPStructuredBlockTest.cpp +++ b/unittests/AST/OMPStructuredBlockTest.cpp @@ -55,7 +55,7 @@ PrintedOMPStmtMatches(StringRef Code, const T &NodeMatch, StringRef ExpectedPrinted, PolicyAdjusterType PolicyAdjuster = None) { std::vector Args = { - "-fopenmp", + "-fopenmp=libomp", }; return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted, PolicyAdjuster);