File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -861,7 +861,8 @@ extern void *jl_crtdll_handle;
861
861
extern void * jl_winsock_handle ;
862
862
#endif
863
863
864
- void * jl_get_library (const char * f_lib );
864
+ void * jl_get_library_ (const char * f_lib , int throw_err );
865
+ #define jl_get_library (f_lib ) jl_get_library_(f_lib, 1)
865
866
JL_DLLEXPORT void * jl_load_and_lookup (const char * f_lib , const char * f_name ,
866
867
void * * hnd );
867
868
JL_DLLEXPORT jl_value_t * jl_get_cfunction_trampoline (
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ using namespace llvm;
27
27
static std::map<std::string, void *> libMap;
28
28
static jl_mutex_t libmap_lock;
29
29
extern " C"
30
- void *jl_get_library (const char *f_lib)
30
+ void *jl_get_library_ (const char *f_lib, int throw_err )
31
31
{
32
32
void *hnd;
33
33
#ifdef _OS_WINDOWS_
@@ -47,7 +47,7 @@ void *jl_get_library(const char *f_lib)
47
47
if (hnd != NULL )
48
48
return hnd;
49
49
// We might run this concurrently on two threads but it doesn't matter.
50
- hnd = jl_load_dynamic_library (f_lib, JL_RTLD_DEFAULT, 1 );
50
+ hnd = jl_load_dynamic_library (f_lib, JL_RTLD_DEFAULT, throw_err );
51
51
if (hnd != NULL )
52
52
jl_atomic_store_release (map_slot, hnd);
53
53
return hnd;
You can’t perform that action at this time.
0 commit comments