Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Set JULIA_HOME? #36

Open
samoconnor opened this issue Oct 24, 2017 · 1 comment
Open

Set JULIA_HOME? #36

samoconnor opened this issue Oct 24, 2017 · 1 comment

Comments

@samoconnor
Copy link

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.

@vtjnash
Copy link
Member

vtjnash commented Nov 3, 2017

related: JuliaLang/julia#20899

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants