Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_latest_release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on:
# pull_request:
pull_request:
workflow_dispatch:

# this cancels workflows currently in progress if you start a new one
Expand Down
13 changes: 12 additions & 1 deletion build.roc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,18 @@ cargo_build_host! = |{}|

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

Cmd.exec!("cargo", ["build", "--release"])
platform = Env.platform!({})

cmd =
Cmd.new("cargo")
|> Cmd.args(["build", "--release"])
|> |c|
when (platform.os, platform.arch) is
(MACOS, X64) -> Cmd.env(c, "RUSTFLAGS", "-C link-arg=-Wl,-headerpad,0x1000") # Prevents: Not enough free space between end of load commands and start of first section in the host
_ -> c


Cmd.exec_cmd!(cmd)
|> Result.map_err(ErrBuildingHostBinaries)

copy_host_lib! : OSAndArch, Str => Result {} _
Expand Down
Loading