From 0fe05cbd1046b040800a10c4b440ed0e67091da2 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Mon, 25 Jan 2021 17:20:54 +0100 Subject: [PATCH] Update src/aotcompile.cpp Co-authored-by: Julian Samaroo --- src/aotcompile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aotcompile.cpp b/src/aotcompile.cpp index 5f2d159db2cc0..b7bdac7923c2e 100644 --- a/src/aotcompile.cpp +++ b/src/aotcompile.cpp @@ -404,7 +404,7 @@ void *jl_create_native(jl_array_t *methods, const jl_cgparams_t cgparams, int _p // move everything inside, now that we've merged everything // (before adding the exported headers) - if (policy != CompilationPolicy::Extern) { + if (policy == CompilationPolicy::Default) { for (GlobalObject &G : clone->global_objects()) { if (!G.isDeclaration()) { G.setLinkage(Function::InternalLinkage);