diff options
author | Jim Ingham <jingham@apple.com> | 2019-12-16 18:08:21 -0800 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2019-12-16 18:09:24 -0800 |
commit | 9e9c5f0a6346ef02e31d5e8b91e6aab16a2e9370 (patch) | |
tree | 7589a0c0b75593eadcd8da9f4566962ec683d151 /lldb/packages/Python/lldbsuite/test | |
parent | 4e48513b472bddf239fc4a9953b0e8c856f284ef (diff) | |
download | bcm5719-llvm-9e9c5f0a6346ef02e31d5e8b91e6aab16a2e9370.tar.gz bcm5719-llvm-9e9c5f0a6346ef02e31d5e8b91e6aab16a2e9370.zip |
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.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
4 files changed, 6 insertions, 0 deletions
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 ee0d4690d83..4b3467bc4e8 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 fab3aa8c563..8288a668fe8 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 ee0d4690d83..4b3467bc4e8 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 fab3aa8c563..8288a668fe8 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; |