You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Override CPU architecture of native modules to install. Acceptable values are same as cpu field of package.json, which comes from process.arch.
Example: bun i --cpu=wasm32 sharp
What is the feature you are proposing to solve the problem?
The new cross-compilation support for Bun build is awesome, and reminded me that we really need the ability to override platforms/architectures in Bun install. In addition to the cpu flag, would be nice to get os and glibc as well. For example, this is npm command I'm using in meantime: npm install --cpu=arm64 --os=linux --libc=glibc sharp
What is the problem this feature would solve?
Override CPU architecture of native modules to install. Acceptable values are same as cpu field of package.json, which comes from process.arch.
Example:
bun i --cpu=wasm32 sharp
What is the feature you are proposing to solve the problem?
Same feature present on npm and variants:
https://docs.npmjs.com/cli/v10/commands/npm-install#cpu
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: