Merge pull request #1035 from napi-rs/zig-cross-fix
This commit is contained in:
commit
859b422ba8
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue