File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 8080app_lib=" $app_path /libapp.so"
8181rm -f " $app_lib " 2> /dev/null || true
8282app_main=" $app_path /main.roc"
83+ # --linker=legacy
8384roc build --lib " $app_main " --output " $app_lib "
8485if [[ -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 "
119123fi
124+ # --linker=legacy
120125(( skip_run)) || roc " $app_main "
You can’t perform that action at this time.
0 commit comments