Sys0 is the uninferred image, which needs to be built by the first
invocation, then it needs to be run again with -J to cache an inferred
version. --build apparently only works with arguments. What is the error
from the bat script? You could try running it manually first

cd base
../julia --build ../usr/lib/julia/sys0 sysimg.jl
../julia --build ../usr/lib/julia/sys -J ../usr/lib/julia/sys0.ji
On Jul 31, 2014 9:02 PM, "Jose Augusto" <[email protected]> wrote:

> Thanks Tony,
>
> I'm finishing a .bat script to automate the task and that includes
> building also a slightly modified 'prepare-julia-env.bat'.
> I'll call it 'redo-julia-env.bat'
>
> To finish it, I need two pieces of information:
>
> First, in the prepare-julia-env.bat' script, julia is used with a --build
> option which I cannot find documented.
> Here is the line with the issue (the vars are the correct dirs, etc...):
>
> cd "%JULIA_HOME%..\share\julia\base" && ^
> "%JULIA%" --build "%JULIA_HOME%..\lib\julia\sys0" sysimg.jl && ^
> "%JULIA%" --build "%JULIA_HOME%..\lib\julia\sys" -J sys0.ji sysimg.jl && ^
> popd && pushd "%cd%" )
>
> However, when I run Julia with that switch I get an error. (Perhaps before
> the 'prepare-julia-env.bat' script is run for the first time in
> installation, there is that option available...?)
>
> D:\Math\Julia-0.3.0-rc1\bin>julia --version
> julia version 0.3.0-rc1
> D:\Math\Julia-0.3.0-rc1\bin>julia --build
> ERROR: unknown option: --build
>  in process_options at client.jl:288
>
> The second issue is that I don't have the 'sys0' file also shown in that
> line, but since I don't know what --build does, sys0 is perhaps being built
> in that command... So, in the end I think the issue is lacking the --build
> command option;
>
> Appreciate any help.
>
> TIA and regards.
>
> Jose
>
>

Reply via email to