Skip to content
Snippets Groups Projects
Commit df3e6bad authored by Jack Nagel's avatar Jack Nagel
Browse files

Move -m32 and -m64 filtering up one level

These flags cannot be used behind -Xarch_<arch>, so stop filtering them
there.
parent 5f94742a
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,9 @@ class Cmd
case arg = enum.next
when "-arch"
enum.next
when "-m32"
args << arg if cccfg?("3")
when "-m64"
when /^-Xarch_/
refurbished = refurbish_arg(enum.next, enum)
unless refurbished.empty?
......@@ -146,11 +149,8 @@ class Cmd
args = []
case arg
when '-m32'
# If ENV.m32 was set, we allow the "-m32" flag, but we don't add anything
args << '-m32' if cccfg? '3'
when /^-g\d?/, /^-gstabs\d+/, '-gstabs+', /^-ggdb\d?/, '-gdwarf-2',
/^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/, '-m64',
/^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/,
/^-O[0-9zs]?$/, '-fast', '-no-cpp-precomp',
'-pedantic', '-pedantic-errors'
when '-fopenmp', '-lgomp', '-mno-fused-madd', '-fforce-addr', '-fno-defer-pop',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment