@@ -79,7 +79,6 @@ function julia_compile(
7979 julia_program = abspath (julia_program)
8080 isfile (julia_program) || error (" Cannot find file:\n \" $julia_program \" " )
8181 quiet || println (" Julia program file:\n \" $julia_program \" " )
82- @show cprog
8382 if executable
8483 cprog = cprog == nothing ? joinpath (@__DIR__ , " .." , " examples" , " program.c" ) : abspath (cprog)
8584 isfile (cprog) || error (" Cannot find file:\n \" $cprog \" " )
@@ -125,7 +124,7 @@ function julia_compile(
125124
126125 shared && build_shared (s_file, joinpath (tmp_dir, o_file), verbose)
127126
128- executable && build_executable (s_file, e_file, cprog, verbose)
127+ executable && compile_executable (s_file, e_file, cprog, verbose)
129128
130129 julialibs && sync_julia_files (verbose)
131130
@@ -152,7 +151,7 @@ function build_shared(s_file, o_file, verbose = false)
152151 flags = julia_flags ()
153152 command = ` $cc $bitness -shared -o $s_file $o_file $flags `
154153 if isapple ()
155- command = ` $command -Wl,-install_name,@rpath/\" $s_file \" `
154+ command = ` $command -Wl,-install_name,@rpath/$s_file `
156155 elseif iswindows ()
157156 command = ` $command -Wl,--export-all-symbols`
158157 end
@@ -161,7 +160,7 @@ function build_shared(s_file, o_file, verbose = false)
161160end
162161
163162
164- function build_executable (s_file, e_file, cprog, verbose = false )
163+ function compile_executable (s_file, e_file, cprog, verbose = false )
165164 bitness = bitness_flag ()
166165 cc = system_compiler ()
167166 flags = julia_flags ()
0 commit comments