Better yet would be to figure out whether the target arch supports it,
but that's not trivial.
argv.push_back("-fPIC");
const Architecture &native_arch = builder.get_native_arch();
- if(architecture->get_bits()!=native_arch.get_bits())
+ if(architecture->is_native() && architecture->get_bits()!=native_arch.get_bits())
argv.push_back(format("-m%d", architecture->get_bits()));
const string &cpu = architecture->get_cpu();
argv.push_back("-pthread");
const Architecture &native_arch = builder.get_native_arch();
- if(architecture->get_bits()!=native_arch.get_bits())
+ if(architecture->is_native() && architecture->get_bits()!=native_arch.get_bits())
argv.push_back(format("-m%d", architecture->get_bits()));
argv.push_back("-o");