From 1799aa94e3132c425cfc47413b7c254d7f8f711e Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 17 Jan 2022 14:05:52 +0800 Subject: [PATCH] fix(cli): swap -lgcc_s with -lunwind --- cli/src/build.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index c2bbc5ed..ebd32696 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -48,7 +48,12 @@ function processZigLinkerArgs(platform: string, args: string[]) { return newArgs } if (platform.includes('linux')) { - return args.filter((arg) => arg !== '-lgcc_s' && arg !== '-lunwind') + return args.map((arg) => { + if (arg === '-lgcc_s') { + return '-lunwind' + } + return arg + }) } return args }