Skip to content

Commit a33763e

Browse files
committed
fix #59
1 parent 4d25c23 commit a33763e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/precompile/create_sysimage.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function create_sysimage(sysout::AbstractString, add_dlmreader::Bool = true; add
1212
if add_dlmreader
1313
tmpDLM = mktemp()
1414
close(tmpDLM[2])
15-
warmupcode *= "; using DLMReader; repeat!(ds, 10000); ds.x1 = rand(10000); ds.x2 = rand(Int, 10000); filewriter(\"$(tmpDLM[1])\", ds); filereader(\"$(tmpDLM[1])\");"
15+
warmupcode *= "; using DLMReader; repeat!(ds, 10000); ds.x1 = rand(10000); ds.x2 = rand(Int, 10000); filewriter(\"$(escape_string(tmpDLM[1]))\", ds); filereader(\"$(escape_string(tmpDLM[1]))\");"
1616
end
1717

1818
run(`$juliaCMD --trace-compile=$(tmpIMD[1]) -e "$warmupcode"`)
@@ -34,7 +34,7 @@ function create_sysimage(sysout::AbstractString, add_dlmreader::Bool = true; add
3434
close(fout)
3535
close(f)
3636
run(`$juliaCMD -e "using PackageCompiler;
37-
create_sysimage(:InMemoryDatasets, sysimage_path=\"$(sysout)\", precompile_execution_file=\"$(tmpIMD_out[1])\")"`)
37+
create_sysimage(:InMemoryDatasets, sysimage_path=\"$(escape_string(sysout))\", precompile_execution_file=\"$(escape_string(tmpIMD_out[1]))\")"`)
3838
println("Now exit julia and re-run it again using $(sysout) as `--sysimage`, e.g. in unix type OS you can use the following command:
3939
julia --sysimage $sysout")
4040
end

0 commit comments

Comments
 (0)