Skip to content

Commit

Permalink
[clang][OpenMP] Fix build when using libgomp
Browse files Browse the repository at this point in the history
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

llvm-svn: 356614
  • Loading branch information
rupprecht committed Mar 20, 2019
1 parent 701a0d7 commit bcb8316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/unittests/AST/OMPStructuredBlockTest.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit bcb8316

Please sign in to comment.