r356614 - [clang][OpenMP] Fix build when using libgomp

Jordan Rupprecht via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 20 14:01:57 PDT 2019


Author: rupprecht
Date: Wed Mar 20 14:01:56 2019
New Revision: 356614

URL: http://llvm.org/viewvc/llvm-project?rev=356614&view=rev
Log:
[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

Modified:
    cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp

Modified: cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp?rev=356614&r1=356613&r2=356614&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp (original)
+++ cfe/trunk/unittests/AST/OMPStructuredBlockTest.cpp Wed Mar 20 14:01:56 2019
@@ -55,7 +55,7 @@ PrintedOMPStmtMatches(StringRef Code, co
                       StringRef ExpectedPrinted,
                       PolicyAdjusterType PolicyAdjuster = None) {
   std::vector<std::string> Args = {
-      "-fopenmp",
+      "-fopenmp=libomp",
   };
   return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted,
                             PolicyAdjuster);




More information about the cfe-commits mailing list