]> granicus.if.org Git - clang/commitdiff
[clang][OpenMP] Fix build when using libgomp
authorJordan Rupprecht <rupprecht@google.com>
Wed, 20 Mar 2019 21:01:56 +0000 (21:01 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Wed, 20 Mar 2019 21:01:56 +0000 (21:01 +0000)
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

unittests/AST/OMPStructuredBlockTest.cpp

index d1138dfe41115db653efd86cd5f7d07647a90a83..4cb51c0a872c2c2c56f2aec95d62bb1766c4bd62 100644 (file)
@@ -55,7 +55,7 @@ PrintedOMPStmtMatches(StringRef Code, const T &NodeMatch,
                       StringRef ExpectedPrinted,
                       PolicyAdjusterType PolicyAdjuster = None) {
   std::vector<std::string> Args = {
-      "-fopenmp",
+      "-fopenmp=libomp",
   };
   return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted,
                             PolicyAdjuster);