Skip to content

Commit c4457db

Browse files
gpsheadtiran
andauthored
Add -fno-lto
Co-authored-by: Christian Heimes <[email protected]>
1 parent 42b989c commit c4457db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tools/peg_generator/pegen/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def compile_c_extension(
6969
extra_link_args.append("/LTCG:OFF")
7070
else:
7171
extra_compile_args.append("-O0")
72+
if sysconfig.get_config_var("GNULD") == "yes":
73+
extra_link_args.append("-fno-lto")
7274
extension = [
7375
Extension(
7476
extension_name,

0 commit comments

Comments
 (0)