diff options
author | Jack Lloyd <[email protected]> | 2019-10-17 09:24:55 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-10-17 09:24:55 -0400 |
commit | be80cd7c69eef13cb6beb1febcf6e50d1e9bf0ad (patch) | |
tree | 7ac3125a3af9656ed29680ca5ba173592b0b7df7 /configure.py | |
parent | e717fb313a1b9e6d9e5ec42f26a663e1d9401c0f (diff) |
Add generic CPU target
Useful when building an amalgamation which must build on multiple
targets.
Though of course it gives up any CPU optimizations so has pretty
major performance impact.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.py b/configure.py index 00baa0c03..8b413db57 100755 --- a/configure.py +++ b/configure.py @@ -3403,8 +3403,9 @@ def main(argv): cc_min_version = options.cc_min_version or calculate_cc_min_version(options, cc, source_paths) cc_arch = check_compiler_arch(options, cc, info_arch, source_paths) - if cc_arch is not None and cc_arch != options.arch: - logging.error("Configured target is %s but compiler probe indicates %s", options.arch, cc_arch) + if options.arch != 'generic': + if cc_arch is not None and cc_arch != options.arch: + logging.error("Configured target is %s but compiler probe indicates %s", options.arch, cc_arch) else: cc_min_version = options.cc_min_version or "0.0" |