Skip to content

Conversation

Michael137
Copy link
Member

The LLDB test-suite compiles the tests on Windows with 'C++14' by default:

# MSVC 2015 or higher is required, which depends on c++14, so
# append these values unconditionally.
CXXFLAGS += -fms-compatibility-version=19.0
CXXFLAGS += -std=c++14

This fixes Windows buildbot failures.

@Michael137
Copy link
Member Author

Michael137 commented Oct 11, 2025

Don't have a Windows machine to test this on, so relying on CI to tell me.

@llvmbot
Copy link
Member

llvmbot commented Oct 11, 2025

@llvm/pr-subscribers-lldb

Author: Michael Buch (Michael137)

Changes

The LLDB test-suite compiles the tests on Windows with 'C++14' by default:

# MSVC 2015 or higher is required, which depends on c++14, so
# append these values unconditionally.
CXXFLAGS += -fms-compatibility-version=19.0
CXXFLAGS += -std=c++14

This fixes Windows buildbot failures.


Full diff: https://github.com/llvm/llvm-project/pull/162995.diff

2 Files Affected:

  • (modified) lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py (+4-4)
  • (modified) lldb/test/Shell/Expr/TestExprLanguageNote.test (+1-1)
diff --git a/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py b/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
index ec208f2c32503..bd468f272d15d 100644
--- a/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
+++ b/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
@@ -218,11 +218,11 @@ def check_error(diags):
             # Detail 1/3: note: requested expression language
             diag = details.GetItemAtIndex(0)
             self.assertEqual(str(diag.GetValueForKey("severity")), "note")
-            self.assertEqual(
-                str(diag.GetValueForKey("message")), "Ran expression as 'C++11'."
+            self.assertIn(
+                "Ran expression as 'C++", str(diag.GetValueForKey("message"))
             )
-            self.assertEqual(
-                str(diag.GetValueForKey("rendered")), "Ran expression as 'C++11'."
+            self.assertIn(
+                "Ran expression as 'C++", str(diag.GetValueForKey("rendered"))
             )
             self.assertEqual(str(diag.GetValueForKey("source_location")), "")
             self.assertEqual(str(diag.GetValueForKey("file")), "")
diff --git a/lldb/test/Shell/Expr/TestExprLanguageNote.test b/lldb/test/Shell/Expr/TestExprLanguageNote.test
index f3dc5928fcca9..b4387bf9121ae 100644
--- a/lldb/test/Shell/Expr/TestExprLanguageNote.test
+++ b/lldb/test/Shell/Expr/TestExprLanguageNote.test
@@ -26,7 +26,7 @@ run
 expr blah
 
 # CHECK-TARGET: (lldb) expr
-# CHECK-TARGET: note: Ran expression as 'C++14'.
+# CHECK-TARGET: note: Ran expression as 'C++{{.*}}'
 
 expr -l objc -- blah
 

Copy link

github-actions bot commented Oct 11, 2025

✅ With the latest revision this PR passed the Python code formatter.

@Michael137 Michael137 merged commit b0b4a8e into llvm:main Oct 11, 2025
10 checks passed
@Michael137 Michael137 deleted the lldb/fix-windows-language-note-tests branch October 11, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants