-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -325,7 +325,12 @@ static uint64_t resolve_compiler_rt(const char *name) | |
jl_printf(JL_STDERR, "WARNING: %s doesn't match %s\n", name, prefix); | ||
return 0; | ||
} | ||
#if defined(_OS_DARWIN_) | ||
// For whatever reason we need to drop the first character on Darwin. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
vchuravy
Author
Member
|
||
uint64_t sym = (uintptr_t)jl_dlsym_e(compiler_rt_hdl, name+1); | ||
#else | ||
uint64_t sym = (uintptr_t)jl_dlsym_e(compiler_rt_hdl, name); | ||
#endif | ||
#if defined(_OS_DARWIN_) || defined(_OS_LINUX_) | ||
if (!sym) { | ||
jl_printf(JL_STDERR, "WARNING: Didn't find symbol in CRT. dlerror %s", dlerror()); | ||
|
Darwin name mangling adds an extra underscore to symbol names.