mirror of https://gitee.com/openkylin/qemu.git
build-sys: set global arguments for cflags/ldflags
As we want subprojects to share those arguments Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20210114125605.1227742-3-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1df783eab5
commit
5fc0617f13
16
meson.build
16
meson.build
|
@ -100,12 +100,12 @@ if 'CONFIG_FUZZ' in config_host
|
||||||
native: false, language: ['c', 'cpp', 'objc'])
|
native: false, language: ['c', 'cpp', 'objc'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
add_project_arguments(config_host['QEMU_CFLAGS'].split(),
|
add_global_arguments(config_host['QEMU_CFLAGS'].split(),
|
||||||
native: false, language: ['c', 'objc'])
|
native: false, language: ['c', 'objc'])
|
||||||
add_project_arguments(config_host['QEMU_CXXFLAGS'].split(),
|
add_global_arguments(config_host['QEMU_CXXFLAGS'].split(),
|
||||||
native: false, language: 'cpp')
|
native: false, language: 'cpp')
|
||||||
add_project_link_arguments(config_host['QEMU_LDFLAGS'].split(),
|
add_global_link_arguments(config_host['QEMU_LDFLAGS'].split(),
|
||||||
native: false, language: ['c', 'cpp', 'objc'])
|
native: false, language: ['c', 'cpp', 'objc'])
|
||||||
|
|
||||||
if targetos == 'linux'
|
if targetos == 'linux'
|
||||||
add_project_arguments('-isystem', meson.current_source_dir() / 'linux-headers',
|
add_project_arguments('-isystem', meson.current_source_dir() / 'linux-headers',
|
||||||
|
@ -1021,8 +1021,8 @@ if get_option('cfi')
|
||||||
error('-fno-sanitize-trap=cfi-icall is not supported by the compiler')
|
error('-fno-sanitize-trap=cfi-icall is not supported by the compiler')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
add_project_arguments(cfi_flags, native: false, language: ['c', 'cpp', 'objc'])
|
add_global_arguments(cfi_flags, native: false, language: ['c', 'cpp', 'objc'])
|
||||||
add_project_link_arguments(cfi_flags, native: false, language: ['c', 'cpp', 'objc'])
|
add_global_link_arguments(cfi_flags, native: false, language: ['c', 'cpp', 'objc'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
|
Loading…
Reference in New Issue