Skip to content

Commit

Permalink
This commit makes the script work when targetdir is not set. It did…
Browse files Browse the repository at this point in the history
… not work on windows and Ubuntu 14.10 before.
  • Loading branch information
dhoegh committed Feb 9, 2015
1 parent 7426410 commit 5794463
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/build_executable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function build_executable(exename, script_file, targetdir=nothing; force=false)

gcc = find_system_gcc()
# This argument is needed for the gcc, see issue #9973
win_arg = @windows ? "-D_WIN32_WINNT=0x0502" : ""
win_arg = @windows ? `-D_WIN32_WINNT=0x0502` : ``
incs = get_includes()
ENV2 = deepcopy(ENV)
@windows_only begin
Expand Down Expand Up @@ -197,9 +197,9 @@ function emit_cmain(cfile, exename, relocation)
if relocation
sysji = joinpath("lib"*exename)
else
sysji = joinpath("..", "lib", "lib"*exename)
sysji = joinpath(dirname(Sys.dlpath("libjulia")), "lib"*exename)
end

sysji = escape_string(sysji)
f = open(cfile, "w")
write( f, """
#include <julia.h>
Expand Down

0 comments on commit 5794463

Please sign in to comment.