You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.
In a statically compiled program Base.julia_cmd() seems to use the directory of the static executable as the path to the julia executable.
To work around this I've added -DJULIA_HOME=$JULIA_HOME to the gcc command line in juliac.jl. and setenv("JULIA_HOME", TOSTRING(JULIA_HOME), 0); in the main() function in program.c.
This causes the statically compiled program to have the same JULIA_HOME as the compile-time julia.
The text was updated successfully, but these errors were encountered:
In a statically compiled program
Base.julia_cmd()
seems to use the directory of the static executable as the path to thejulia
executable.To work around this I've added
-DJULIA_HOME=$JULIA_HOME
to thegcc
command line injuliac.jl
. andsetenv("JULIA_HOME", TOSTRING(JULIA_HOME), 0);
in themain()
function inprogram.c
.This causes the statically compiled program to have the same
JULIA_HOME
as the compile-timejulia
.The text was updated successfully, but these errors were encountered: