Skip to content

Commit 3ae9fea

Browse files
committed
fix macos intel Not enough free space
1 parent 02c180a commit 3ae9fea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.roc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ cargo_build_host! = |{}|
103103

104104
info!("Building rust host ...")?
105105

106-
Cmd.exec!("cargo", ["build", "--release"])
106+
Cmd.new("cargo")
107+
|> Cmd.args(["build", "--release"])
108+
|> Cmd.env("RUSTFLAGS", "-C link-arg=-Wl,-headerpad,0x1000")
109+
|> Cmd.exec_cmd!()
107110
|> Result.map_err(ErrBuildingHostBinaries)
108111

109112
copy_host_lib! : OSAndArch, Str => Result {} _

0 commit comments

Comments
 (0)