diff --git a/src/spec/index.ts b/src/spec/index.ts index ccb9b9a..c8e022a 100644 --- a/src/spec/index.ts +++ b/src/spec/index.ts @@ -333,6 +333,12 @@ export async function runSPEC({ return ""; } + let libs = compilerSuite === "llvm" ? cflangLibs(prefix) : []; + + if (optimizeProfile !== "openmp") { + libs.push("-lompstub"); + } + // Spawn SPEC process with configuration const specProc = await spawnSPECWithID( specInstance, @@ -360,7 +366,7 @@ export async function runSPEC({ ), ], compilerPaths: toolchain(compilerPrefix, compilerSuite as ToolchainSuite), - libs: compilerSuite === "llvm" ? cflangLibs(prefix) : [], + libs, specialFlags: getSpecialFlags(), openmp: { threads: optimizeProfile === "openmp" ? 64 : 1,