Skip to content

Commit

Permalink
fix: use both arch and target_arch
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Nov 18, 2023
1 parent a89649f commit fe6ad50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module-type/node-pre-gyp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export class NodePreGyp extends NativeModule {
nodePreGypPath,
'reinstall',
'--fallback-to-build',
`--target_arch=${this.rebuilder.arch}`,
`--arch=${this.rebuilder.arch}`, // fallback build arch
`--target_arch=${this.rebuilder.arch}`, // prebuild arch
`--target_platform=${this.rebuilder.platform}`,
...await this.getNodePreGypRuntimeArgs(),
],
Expand Down

0 comments on commit fe6ad50

Please sign in to comment.