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 }