From a60564e6058fd9e742f5a5fc4ab7576b8381c604 Mon Sep 17 00:00:00 2001 From: Tudor Gradinaru Date: Sat, 8 Nov 2025 12:30:48 +0200 Subject: Fix inverted RTTI logic in Intel C++ compiler The IntelCPPCompiler was incorrectly adding -fno-rtti when RTTI was enabled (rtti=True) instead of when it was disabled. This change corrects the logic to match the behavior of GCC and Clang compilers, which properly add -fno-rtti when rtti=False. Fixes #15220 --- mesonbuild/compilers/cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/cpp.py') diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 91a1f04ab..bfcb924f9 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -733,7 +733,7 @@ class IntelCPPCompiler(IntelGnuLikeCompiler, CPPCompiler): if eh == 'none': args.append('-fno-exceptions') - if rtti: + if not rtti: args.append('-fno-rtti') if debugstl: args.append('-D_GLIBCXX_DEBUG=1') -- cgit v1.2.3