diff --git a/src/chromium/configure.ts b/src/chromium/configure.ts index 6e19756..e364c2e 100644 --- a/src/chromium/configure.ts +++ b/src/chromium/configure.ts @@ -71,10 +71,28 @@ export function configure(source: string, gnExe: string, outDir: string, gnArgs: ], { cwd: source }); } -const hash = '7081b8371ae6460baabc370de4570ebd7e67f923'; const gnExe = path.resolve(chromiumSource, 'buildtools', 'linux64', 'gn-linux-sw64'); -const outDir = path.resolve(chromiumSource, 'out', 'Release'); -await promisifySpawn(configure(chromiumSource, gnExe, outDir, gnArgs(path.resolve(lycEnv.sharedLLVMInstall, hash)))) \ No newline at end of file +async function configureNoSIMD() { + const hash = '7081b8371ae6460baabc370de4570ebd7e67f923'; + + const outDir = path.resolve(chromiumSource, 'out', 'Release'); + + await promisifySpawn(configure(chromiumSource, gnExe, outDir, gnArgs(path.resolve(lycEnv.sharedLLVMInstall, hash)))); +} + + +await configureSIMD(); +async function configureSIMD() { + const hash = 'efa1fe54475ed4c333a6ec911cba80b7b4ba0963'; + + const outDir = path.resolve(chromiumSource, 'out', 'simd', 'Release'); + const configureProcess = configure(chromiumSource, gnExe, outDir, gnArgs(path.resolve(lycEnv.sharedLLVMInstall, hash))); + + configureProcess.stdout.pipe(process.stdout); + configureProcess.stderr.pipe(process.stderr); + + await promisifySpawn(configureProcess); +} \ No newline at end of file