diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-05-17 17:48:34 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-05-23 13:49:52 -0700 |
commit | 44fc71687377bfcdfffa448bb41d228ef3caf46c (patch) | |
tree | 3d5340a74bfe13e131c3a30296d3c854e569ffe4 /meson.build | |
parent | aa33508196f4e2da04625bee36e1f7be5b9267e7 (diff) | |
download | qemu-44fc71687377bfcdfffa448bb41d228ef3caf46c.zip qemu-44fc71687377bfcdfffa448bb41d228ef3caf46c.tar.gz qemu-44fc71687377bfcdfffa448bb41d228ef3caf46c.tar.bz2 |
util: Introduce host-specific cpuinfo.h
The entire contents of the header is host-specific, but the
existence of such a header is not, which could prevent some
host specific ifdefs at the top of the file for the include.
Add host/include/{arch,generic} to the project arguments.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 0a5cdef..c516b91 100644 --- a/meson.build +++ b/meson.build @@ -512,6 +512,16 @@ add_project_arguments('-iquote', '.', '-iquote', meson.current_source_dir() / 'include', language: all_languages) +# If a host-specific include directory exists, list that first... +host_include = meson.current_source_dir() / 'host/include/' +if fs.is_dir(host_include / host_arch) + add_project_arguments('-iquote', host_include / host_arch, + language: all_languages) +endif +# ... followed by the generic fallback. +add_project_arguments('-iquote', host_include / 'generic', + language: all_languages) + sparse = find_program('cgcc', required: get_option('sparse')) if sparse.found() run_target('sparse', |