Skip to content

Commit

Permalink
fix(cli): swap -lgcc_s with -lunwind
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Jan 17, 2022
1 parent cdcab88 commit 1799aa9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1799aa9

Please sign in to comment.