Skip to content

Commit

Permalink
Fix debug build (#37674)
Browse files Browse the repository at this point in the history
`dlopen`ing the release version of the library in the debug build is a **REALLY** bad idea.
  • Loading branch information
yuyichao authored Sep 21, 2020
1 parent 9738c14 commit 9ffc703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/generate_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if Artifacts !== nothing
artifacts = Artifacts.load_artifacts_toml(artifacts_toml)
platforms = [Artifacts.unpack_platform(e, "c_simple", artifacts_toml) for e in artifacts["c_simple"]]
best_platform = select_platform(Dict(p => triplet(p) for p in platforms))
dlopen("libjulia", RTLD_LAZY | RTLD_DEEPBIND)
dlopen("libjulia$(ccall(:jl_is_debugbuild, Cint, ()) != 0 ? "-debug" : "")", RTLD_LAZY | RTLD_DEEPBIND)
"""
end

Expand Down

0 comments on commit 9ffc703

Please sign in to comment.