File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1264,8 +1264,8 @@ try:
1264
1264
# If we can LTO, do it before dce, since it opens up dce opportunities
1265
1265
if shared .Building .can_build_standalone () and llvm_lto and llvm_lto != 2 and shared .Building .can_use_unsafe_opts ():
1266
1266
if not shared .Building .can_inline (): link_opts .append ('-disable-inlining' )
1267
- # do not internalize in std-link-opts - it ignores internalize-public-api-list - and add a manual internalize
1268
- link_opts += [ '-disable-internalize' ] + shared .Building .get_safe_internalize () + ['-std-link-opts' ]
1267
+ # add a manual internalize with the proper things we need to be kept alive during lto
1268
+ link_opts += shared .Building .get_safe_internalize () + ['-std-link-opts' ]
1269
1269
# execute it now, so it is done entirely before we get to the stage of legalization etc.
1270
1270
shared .Building .llvm_opt (final , pre_fastcomp_opts + link_opts )
1271
1271
if DEBUG : save_intermediate ('lto' , 'bc' )
You can’t perform that action at this time.
0 commit comments