Fix OpenMP & tests

pull/6/head
A. R. Shajii 2021-11-12 14:13:34 -05:00
parent a7153b0acf
commit 883d6421ed
2 changed files with 5 additions and 3 deletions

View File

@ -66,9 +66,9 @@ if(bdwgc_ADDED)
endif()
CPMAddPackage(
NAME openmp
GITHUB_REPOSITORY "exaloop/openmp"
VERSION 12.0.1
GITHUB_REPOSITORY "llvm-mirror/openmp"
VERSION 9.0
GIT_TAG release_90
OPTIONS "OPENMP_ENABLE_LIBOMPTARGET OFF"
"OPENMP_STANDALONE_BUILD ON")

View File

@ -185,6 +185,8 @@ public:
auto compiler = std::make_unique<Compiler>(
argv0, debug, /*disabledPasses=*/std::vector<std::string>{}, /*isTest=*/true);
compiler->getLLVMVisitor()->setStandalone(
true); // make sure we abort() on runtime error
llvm::handleAllErrors(code.empty()
? compiler->parseFile(file, testFlags)
: compiler->parseCode(file, code, startLine, testFlags),