meson/mesonbuild/compilers
Sam James 85cfc1fafc
Compilers: pass -Werror to the linker with b_lto
With LTO, the linker will re-execute the compiler and various warnings may
be emitted. We must therefore pass -Werror to the linker as well when -Werror
is enabled to capture these. This is only required / useful with LTO.

Closes: https://github.com/mesonbuild/meson/issues/7360
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
2024-01-18 02:19:26 -05:00
..
mixins Revert "clike: Deduplicate rpath linker flags" 2023-12-26 18:09:34 -05:00
__init__.py Use SPDX-License-Identifier consistently 2023-12-13 15:19:21 -05:00
asm.py Remove `get_buildtype_args` function 2023-12-23 13:32:49 +02:00
c.py compilers: add c23 and gnu23 c_stds 2024-01-15 23:31:52 +02:00
c_function_attributes.py Fix visibility attribute support check for GCC on Windows 2023-11-04 23:36:03 -04:00
compilers.py Compilers: pass -Werror to the linker with b_lto 2024-01-18 02:19:26 -05:00
cpp.py compilers: cpp: wire up debugstl for Clang 2024-01-09 20:49:27 -05:00
cs.py Remove `get_buildtype_args` function 2023-12-23 13:32:49 +02:00
cuda.py nvcc compiler: support find dependency header files 2023-12-26 23:37:27 -05:00
cython.py Remove `get_buildtype_args` function 2023-12-23 13:32:49 +02:00
d.py Remove `get_buildtype_args` function 2023-12-23 13:32:49 +02:00
detect.py Use SPDX-License-Identifier consistently 2023-12-13 15:19:21 -05:00
fortran.py Remove `get_buildtype_args` function 2023-12-23 13:32:49 +02:00
java.py Remove `get_buildtype_args` function 2023-12-23 13:32:49 +02:00
objc.py Use SPDX-License-Identifier consistently 2023-12-13 15:19:21 -05:00
objcpp.py Use SPDX-License-Identifier consistently 2023-12-13 15:19:21 -05:00
rust.py rust: fix linking static executables 2024-01-17 13:36:15 -08:00
swift.py Remove `get_buildtype_args` function 2023-12-23 13:32:49 +02:00
vala.py Remove `get_buildtype_args` function 2023-12-23 13:32:49 +02:00