From 6a5ee0873773684943100535ca5bace8478ae296 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Sat, 14 Feb 2026 23:40:28 +0300 Subject: [PATCH] meson: Only enable -Wno-interference-size with GCC Clang doesn't recognise this option. --- nix-meson-build-support/common/meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix-meson-build-support/common/meson.build b/nix-meson-build-support/common/meson.build index b99ad3fd298a..20dc2e3c8cf8 100644 --- a/nix-meson-build-support/common/meson.build +++ b/nix-meson-build-support/common/meson.build @@ -27,13 +27,19 @@ add_project_arguments( '-Wignored-qualifiers', '-Wimplicit-fallthrough', '-Wno-deprecated-declarations', - '-Wno-interference-size', # Used for C++ ABI only. We don't provide any guarantees about different march tunings. language : 'cpp', ) # GCC doesn't benefit much from precompiled headers. do_pch = cxx.get_id() == 'clang' +if cxx.get_id() == 'gcc' + add_project_arguments( + '-Wno-interference-size', # Used for C++ ABI only. We don't provide any guarantees about different march tunings. + language : 'cpp', + ) +endif + # This is a clang-only option for improving build times. # It forces the instantiation of templates in the PCH itself and # not every translation unit it's included in.