[Lldb-commits] [lldb] 9e9c5f0 - Explicitly specify -std=c++11 and include <mutex> and <condition_variable>.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 16 18:09:33 PST 2019


Author: Jim Ingham
Date: 2019-12-16T18:09:24-08:00
New Revision: 9e9c5f0a6346ef02e31d5e8b91e6aab16a2e9370

URL: https://github.com/llvm/llvm-project/commit/9e9c5f0a6346ef02e31d5e8b91e6aab16a2e9370
DIFF: https://github.com/llvm/llvm-project/commit/9e9c5f0a6346ef02e31d5e8b91e6aab16a2e9370.diff

LOG: Explicitly specify -std=c++11 and include <mutex> and <condition_variable>.

These files built on macos but not on Debian Linux.  Let's see if this fixes it.

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile
    lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp
    lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile
    lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile b/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile
index ee0d4690d834..4b3467bc4e82 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile
@@ -1,4 +1,5 @@
 CXX_SOURCES := locking.cpp
+CXXFLAGS_EXTRAS := -std=c++11
 ENABLE_THREADS := YES
 
 include Makefile.rules

diff  --git a/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp b/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp
index fab3aa8c5635..8288a668fe86 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp
@@ -1,5 +1,7 @@
 #include <stdio.h>
 #include <thread>
+#include <mutex>
+#include <condition_variable>
 
 std::mutex contended_mutex;
 

diff  --git a/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile b/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile
index ee0d4690d834..4b3467bc4e82 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile
@@ -1,4 +1,5 @@
 CXX_SOURCES := locking.cpp
+CXXFLAGS_EXTRAS := -std=c++11
 ENABLE_THREADS := YES
 
 include Makefile.rules

diff  --git a/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp b/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp
index fab3aa8c5635..8288a668fe86 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp
+++ b/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp
@@ -1,5 +1,7 @@
 #include <stdio.h>
 #include <thread>
+#include <mutex>
+#include <condition_variable>
 
 std::mutex contended_mutex;
 


        


More information about the lldb-commits mailing list