mirror of https://github.com/exaloop/codon
Fix OpenMP & tests
parent
a7153b0acf
commit
883d6421ed
|
@ -66,9 +66,9 @@ if(bdwgc_ADDED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME openmp
|
GITHUB_REPOSITORY "llvm-mirror/openmp"
|
||||||
GITHUB_REPOSITORY "exaloop/openmp"
|
VERSION 9.0
|
||||||
VERSION 12.0.1
|
GIT_TAG release_90
|
||||||
OPTIONS "OPENMP_ENABLE_LIBOMPTARGET OFF"
|
OPTIONS "OPENMP_ENABLE_LIBOMPTARGET OFF"
|
||||||
"OPENMP_STANDALONE_BUILD ON")
|
"OPENMP_STANDALONE_BUILD ON")
|
||||||
|
|
||||||
|
|
|
@ -185,6 +185,8 @@ public:
|
||||||
|
|
||||||
auto compiler = std::make_unique<Compiler>(
|
auto compiler = std::make_unique<Compiler>(
|
||||||
argv0, debug, /*disabledPasses=*/std::vector<std::string>{}, /*isTest=*/true);
|
argv0, debug, /*disabledPasses=*/std::vector<std::string>{}, /*isTest=*/true);
|
||||||
|
compiler->getLLVMVisitor()->setStandalone(
|
||||||
|
true); // make sure we abort() on runtime error
|
||||||
llvm::handleAllErrors(code.empty()
|
llvm::handleAllErrors(code.empty()
|
||||||
? compiler->parseFile(file, testFlags)
|
? compiler->parseFile(file, testFlags)
|
||||||
: compiler->parseCode(file, code, startLine, testFlags),
|
: compiler->parseCode(file, code, startLine, testFlags),
|
||||||
|
|
Loading…
Reference in New Issue