Commit ed66c9e9 authored by yb9976's avatar yb9976
Browse files

Choose same target architecture for all compilers

parent c1837f9a
......@@ -380,9 +380,7 @@ def get_portability(options, prog, lang):
def check_options(options):
# Convenience: always compile to 32-bit x86 code with cparser
target_x86 = options.target_architecture == "i686" or options.target_architecture == "x86_64"
is_cparser = "cparser" in options.c_compiler
if HOST_ARCH == "x86_64" and is_cparser and target_x86 and \
not ("-m32" in options.c_compiler_args) and not options.force_64:
if HOST_ARCH == "x86_64" and target_x86 and not options.force_64:
options.target_architecture = "i686"
if options.c_compiler_args == []:
options.c_compiler_args = ["-march=native"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment