Skip to content

Commit fa66cb3

Browse files
maleadtjpsamaroo
authored andcommitted
Update src/aotcompile.cpp
Co-authored-by: Julian Samaroo <[email protected]> (cherry picked from commit 0fe05cb)
1 parent d0b97ea commit fa66cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aotcompile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ void *jl_create_native(jl_array_t *methods, const jl_cgparams_t cgparams, int _p
404404

405405
// move everything inside, now that we've merged everything
406406
// (before adding the exported headers)
407-
if (policy != CompilationPolicy::Extern) {
407+
if (policy == CompilationPolicy::Default) {
408408
for (GlobalObject &G : clone->global_objects()) {
409409
if (!G.isDeclaration()) {
410410
G.setLinkage(Function::InternalLinkage);

0 commit comments

Comments
 (0)