fix(cli): zig abi should pass to linker

This commit is contained in:
LongYinan 2022-01-13 18:21:20 +08:00
parent 5d9a444e40
commit 95d49f8cf4
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -254,9 +254,7 @@ export class BuildCommand extends Command {
triple.platform === 'win32' ? 'c++' : 'cc'
}', ...processZigLinkerArgs('${
triple.raw
}', process.argv.slice(2)), '-target', '${
ZIG_PLATFORM_TARGET_MAP[triple.raw]
}'], { stdio: 'inherit', shell: true })\nwriteFileSync('${linkerWrapper.replaceAll(
}', process.argv.slice(2)), '-target', '${zigTarget}'], { stdio: 'inherit', shell: true })\nwriteFileSync('${linkerWrapper.replaceAll(
'\\',
'/',
)}.args.log', process.argv.slice(2).join(' '))\n\nprocess.exit(status || 0)\n`,