From 747152a00878180897ad6c4484a5c81e0d115914 Mon Sep 17 00:00:00 2001 From: Dexter Chua Date: Thu, 11 Feb 2021 01:25:56 +0800 Subject: [PATCH] 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. --- pyodide_build/pywasmcross.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyodide_build/pywasmcross.py b/pyodide_build/pywasmcross.py index 66e4af110..3ddcfc4dd 100755 --- a/pyodide_build/pywasmcross.py +++ b/pyodide_build/pywasmcross.py @@ -299,6 +299,9 @@ def handle_command(line, args, dryrun=False): # threading is disabled for now if arg == "-pthread": 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 if arg in ["-bundle", "-undefined", "dynamic_lookup"]: continue