mirror of https://github.com/exaloop/codon
Fix OpenMP & tests
parent
a7153b0acf
commit
883d6421ed
|
@ -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")
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue