fix(cli): swap -lgcc_s with -lunwind

This commit is contained in:
LongYinan 2022-01-17 14:05:52 +08:00
parent cdcab888ee
commit 1799aa94e3
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -48,7 +48,12 @@ function processZigLinkerArgs(platform: string, args: string[]) {
return newArgs return newArgs
} }
if (platform.includes('linux')) { 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 return args
} }