From 9e9c5f0a6346ef02e31d5e8b91e6aab16a2e9370 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Mon, 16 Dec 2019 18:08:21 -0800 Subject: Explicitly specify -std=c++11 and include and . These files built on macos but not on Debian Linux. Let's see if this fixes it. --- .../Python/lldbsuite/test/commands/expression/no-deadlock/Makefile | 1 + .../Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp | 2 ++ .../Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile | 1 + .../Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp | 2 ++ 4 files changed, 6 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test') 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 #include +#include +#include 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 #include +#include +#include std::mutex contended_mutex; -- cgit v1.2.3