[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 llvm-svn: 356614
This commit is contained in:
parent
701a0d7e47
commit
bcb8316de5
|
@ -55,7 +55,7 @@ PrintedOMPStmtMatches(StringRef Code, const T &NodeMatch,
|
||||||
StringRef ExpectedPrinted,
|
StringRef ExpectedPrinted,
|
||||||
PolicyAdjusterType PolicyAdjuster = None) {
|
PolicyAdjusterType PolicyAdjuster = None) {
|
||||||
std::vector<std::string> Args = {
|
std::vector<std::string> Args = {
|
||||||
"-fopenmp",
|
"-fopenmp=libomp",
|
||||||
};
|
};
|
||||||
return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted,
|
return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted,
|
||||||
PolicyAdjuster);
|
PolicyAdjuster);
|
||||||
|
|
Loading…
Reference in New Issue