rupprecht created this revision. rupprecht added a reviewer: lebedev.ri. Herald added subscribers: cfe-commits, jdoerfert, guansong. Herald added a project: clang.
rL356570 <https://reviews.llvm.org/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. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D59609 Files: clang/unittests/AST/OMPStructuredBlockTest.cpp Index: clang/unittests/AST/OMPStructuredBlockTest.cpp =================================================================== --- clang/unittests/AST/OMPStructuredBlockTest.cpp +++ clang/unittests/AST/OMPStructuredBlockTest.cpp @@ -55,7 +55,7 @@ StringRef ExpectedPrinted, PolicyAdjusterType PolicyAdjuster = None) { std::vector<std::string> Args = { - "-fopenmp", + "-fopenmp=libomp", }; return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted, PolicyAdjuster);
Index: clang/unittests/AST/OMPStructuredBlockTest.cpp =================================================================== --- clang/unittests/AST/OMPStructuredBlockTest.cpp +++ clang/unittests/AST/OMPStructuredBlockTest.cpp @@ -55,7 +55,7 @@ StringRef ExpectedPrinted, PolicyAdjusterType PolicyAdjuster = None) { std::vector<std::string> Args = { - "-fopenmp", + "-fopenmp=libomp", }; return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted, PolicyAdjuster);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits