Skip to content

Commit

Permalink
[loader/libjulia]: Call setup_stdio() when loading libjulia
Browse files Browse the repository at this point in the history
This allows libjulia's initialization routines to properly output to
`stdout` in embedding scenarios.
  • Loading branch information
staticfloat committed Dec 30, 2020
1 parent 3d922e4 commit 144f781
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/loader_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ JL_DLLEXPORT int jl_load_repl(int argc, char * argv[]) {

#ifdef _OS_WINDOWS_
int __stdcall DllMainCRTStartup(void* instance, unsigned reason, void* reserved) {
setup_stdio();

// Because we override DllMainCRTStartup, we have to manually call our constructor methods
jl_load_libjulia_internal();
return 1;
Expand Down

0 comments on commit 144f781

Please sign in to comment.