From 95d49f8cf4485fcf8a882291b9bd64d5667668c6 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 13 Jan 2022 18:21:20 +0800 Subject: [PATCH] fix(cli): zig abi should pass to linker --- cli/src/build.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index f12c0bec..eadf8a05 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -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`,