@@ -351,11 +351,6 @@ def _gcc(ver: BranchProfile, paths: ProjectPaths, config: argparse.Namespace):
351351 '--without-libcc1' ,
352352 '--with-libiconv' ,
353353 '--with-tune=generic' ,
354- * cflags_B (
355- cpp_extra = [f'-D_WIN32_WINNT=0x{ ver .min_winnt :04X} ' ],
356- optimize_for_size = ver .optimize_for_size ,
357- lto = not ver .optimize_for_size ,
358- ),
359354 * cflags_B ('_FOR_TARGET' ,
360355 # CPPFLAGS_FOR_TARGET is not passed
361356 common_extra = [f'-D_WIN32_WINNT=0x{ ver .min_winnt :04X} ' ],
@@ -392,6 +387,11 @@ def _gcc(ver: BranchProfile, paths: ProjectPaths, config: argparse.Namespace):
392387 '--disable-shared' ,
393388 '--enable-static' ,
394389 * common_flags ,
390+ * cflags_B (
391+ cpp_extra = [f'-D_WIN32_WINNT=0x{ ver .min_winnt :04X} ' ],
392+ optimize_for_size = ver .optimize_for_size ,
393+ lto = not ver .optimize_for_size ,
394+ ),
395395 ])
396396 make_default (build_dir , config .jobs )
397397 make_destdir_install (build_dir , paths .layer_ABB .gcc )
@@ -452,6 +452,11 @@ def _gcc(ver: BranchProfile, paths: ProjectPaths, config: argparse.Namespace):
452452 '--enable-shared' ,
453453 '--disable-static' ,
454454 * common_flags ,
455+ * cflags_B (
456+ cpp_extra = [f'-D_WIN32_WINNT=0x{ ver .min_winnt :04X} ' ],
457+ optimize_for_size = ver .optimize_for_size ,
458+ lto = False ,
459+ ),
455460 ])
456461 make_custom (build_dir , ['all-target' ], config .jobs )
457462 make_custom (build_dir , [f'DESTDIR={ paths .layer_ABB .gcc } ' , 'install-target' ], jobs = 1 )
0 commit comments