Skip to content

Commit 9379034

Browse files
committed
roc
1 parent 1bb6971 commit 9379034

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkgs/roc/lib/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ fi
8080
app_lib="$app_path/libapp.so"
8181
rm -f "$app_lib" 2>/dev/null || true
8282
app_main="$app_path/main.roc"
83+
# --linker=legacy
8384
roc build --lib "$app_main" --output "$app_lib"
8485
if [[ -d "$platform_path" ]]; then
8586
if [[ ! -d "$platform_roc_path/Lib" ]]; then
@@ -96,8 +97,10 @@ if [[ -d "$platform_path" ]]; then
9697
if [[ -e "$roc_build_file" ]]; then
9798
# nix_file="./flake.nix"
9899
# if [[ -f "$nix_file" ]] && command -v nix && eval "nix eval --json .#devShell.x86_64-linux >/dev/null 2>&1"; then
100+
# --linker=legacy
99101
# nix develop --command "roc \"$roc_build_file\""
100102
# else
103+
# --linker=legacy
101104
roc "$roc_build_file"
102105
# fi
103106
if [[ -d "target/release" ]]; then
@@ -115,6 +118,8 @@ if [[ -d "$platform_path" ]]; then
115118
fi
116119
popd >/dev/null
117120
host_main="$platform_roc_path/main.roc"
121+
# --linker=legacy
118122
roc preprocess-host "$host_bin" "$host_main" "$app_lib"
119123
fi
124+
# --linker=legacy
120125
((skip_run)) || roc "$app_main"

0 commit comments

Comments
 (0)