Revert "meson: disallow Venus debug + LTO build via GCC"

This reverts commit 423ba5d1c7.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30355>
This commit is contained in:
Yiwei Zhang
2024-07-24 11:45:13 -07:00
committed by Marge Bot
parent 7cc199502f
commit 3e6b73a75a

View File

@@ -2291,12 +2291,6 @@ endif
# as GCC LTO drops them. See: https://bugs.freedesktop.org/show_bug.cgi?id=109391
gcc_lto_quirk = (cc.get_id() == 'gcc') ? ['-fno-lto'] : []
# As of GCC 13.2.1, Venus build with optimization level plain/0 and LTO does not
# compile properly: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11006
if with_virtio_vk and cc.get_id() == 'gcc' and (get_option('optimization') == '0' or get_option('optimization') == 'plain') and get_option('b_lto') == true
error('Venus does not compile properly with GCC + optimization level plain/0 + LTO.')
endif
devenv = environment()
dir_compiler_nir = join_paths(meson.current_source_dir(), 'src/compiler/nir/')