mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
fix: 🔧 wait for adding linux target to rust toolchain in CLI (#80)
To make `bun cli` work as expected on Mac OS.
This commit is contained in:
parent
c53be22726
commit
9edc39e73a
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ export const cargoCrossbuild = async (options: {
|
|||
installCargoZigbuild();
|
||||
|
||||
const target = "x86_64-unknown-linux-gnu";
|
||||
addRustupTarget(target);
|
||||
await addRustupTarget(target);
|
||||
|
||||
// Build and copy libpq.so before cargo zigbuild
|
||||
await buildAndCopyLibpq(target);
|
||||
|
|
@ -55,7 +55,7 @@ export const cargoCrossbuild = async (options: {
|
|||
logger.info("🖥️ Linux AMD64 detected. Proceeding with cross-building...");
|
||||
|
||||
const target = "x86_64-unknown-linux-gnu";
|
||||
addRustupTarget(target);
|
||||
await addRustupTarget(target);
|
||||
const command = `cargo build --target ${target} --release --features ${RUNTIME_FEATURES.join(",")}`;
|
||||
logger.debug(`Running build command: ${command}`);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue