Skip -ffixed-form flag (#1225)

This is only effective when compiling fortran code, which is not what we
are doing since we have applied f2c. Future versions of clang forbid
specifying the flag when not compiling fortran.
This commit is contained in:
Dexter Chua 2021-02-11 01:25:56 +08:00 committed by GitHub
parent 1aea60d91d
commit 747152a008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,9 @@ def handle_command(line, args, dryrun=False):
# threading is disabled for now # threading is disabled for now
if arg == "-pthread": if arg == "-pthread":
continue continue
# this only applies to compiling fortran code, but we already f2c'd
if arg == "-ffixed-form":
continue
# On Mac, we need to omit some darwin-specific arguments # On Mac, we need to omit some darwin-specific arguments
if arg in ["-bundle", "-undefined", "dynamic_lookup"]: if arg in ["-bundle", "-undefined", "dynamic_lookup"]:
continue continue