File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -635,10 +635,13 @@ def run_compile():
635
635
r'--((f(90)?compiler(-exec|)|compiler)=|help-compiler)' )
636
636
flib_flags = [_m for _m in sys .argv [1 :] if _reg3 .match (_m )]
637
637
sys .argv = [_m for _m in sys .argv if _m not in flib_flags ]
638
- _reg4 = re .compile (
639
- r'--((f(77|90)(flags|exec)|opt|arch)=|(debug|noopt|noarch|help-fcompiler))' )
640
- fc_flags = [_m for _m in sys .argv [1 :] if _reg4 .match (_m )]
641
- sys .argv = [_m for _m in sys .argv if _m not in fc_flags ]
638
+ reg_f77_f90_flags = re .compile (r'--f(77|90)flags=' )
639
+ reg_distutils_flags = re .compile (r'--((f(77|90)exec|opt|arch)=|(debug|noopt|noarch|help-fcompiler))' )
640
+ fc_flags = [_m for _m in sys .argv [1 :] if reg_f77_f90_flags .match (_m )]
641
+ distutils_flags = [_m for _m in sys .argv [1 :] if reg_distutils_flags .match (_m )]
642
+ if not (MESON_ONLY_VER or backend_key == 'meson' ):
643
+ fc_flags .extend (distutils_flags )
644
+ sys .argv = [_m for _m in sys .argv if _m not in (fc_flags + distutils_flags )]
642
645
643
646
del_list = []
644
647
for s in flib_flags :
You can’t perform that action at this time.
0 commit comments