summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Gradinaru <tudor.rodut@yahoo.com>2025-11-08 12:30:48 +0200
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-11-09 14:57:42 +0200
commita60564e6058fd9e742f5a5fc4ab7576b8381c604 (patch)
tree6ac71d418eed79e75e4373dff938f0d2a51a861f
parent66f648d0870286540511846f69a101e24dbe92c1 (diff)
downloadmeson-a60564e6058fd9e742f5a5fc4ab7576b8381c604.tar.gz
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
-rw-r--r--mesonbuild/compilers/cpp.py2
1 files changed, 1 insertions, 1 deletions
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')