fix: keep OpenCAMLib build script valid JavaScript
This commit is contained in:
@@ -37,8 +37,8 @@ const reproducibleLink = originalLink.replace(/\s+--closure\s+1\b/, '')
|
|||||||
if (reproducibleLink === originalLink) throw new Error('OpenCAMLib generated link command did not contain the expected optional Closure flag.')
|
if (reproducibleLink === originalLink) throw new Error('OpenCAMLib generated link command did not contain the expected optional Closure flag.')
|
||||||
await writeFile(linkPath, reproducibleLink)
|
await writeFile(linkPath, reproducibleLink)
|
||||||
execFileSync('cmake', ['--build', build, '--target', 'ocl', '--parallel', '4'], { cwd: root, stdio: 'inherit' })
|
execFileSync('cmake', ['--build', build, '--target', 'ocl', '--parallel', '4'], { cwd: root, stdio: 'inherit' })
|
||||||
# Normalize the generated single-file loader before it becomes the public
|
// Normalize the generated single-file loader before it becomes the public
|
||||||
# artifact. This removes Emscripten's version-sensitive whitespace-only line.
|
// artifact. This removes Emscripten's version-sensitive whitespace-only line.
|
||||||
execFileSync('perl', ['-pi', '-e', 's/[ \\t]+$//', resolve(build, 'ocl.js')])
|
execFileSync('perl', ['-pi', '-e', 's/[ \\t]+$//', resolve(build, 'ocl.js')])
|
||||||
execFileSync('cmake', ['--install', build], { cwd: root, stdio: 'inherit' })
|
execFileSync('cmake', ['--install', build], { cwd: root, stdio: 'inherit' })
|
||||||
console.log(`Built OpenCAMLib ${revision} into ${install}`)
|
console.log(`Built OpenCAMLib ${revision} into ${install}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user