From e75bf27b5f49c2f38b79983822ff9fad4778e501 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 10 May 2022 17:23:03 +0300 Subject: [PATCH] Add "-pthread" to the LINKFLAGS --- platformio/test/runners/googletest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/test/runners/googletest.py b/platformio/test/runners/googletest.py index 612a7943..b3687bad 100644 --- a/platformio/test/runners/googletest.py +++ b/platformio/test/runners/googletest.py @@ -103,7 +103,7 @@ class GoogletestTestRunner(TestRunnerBase): return env.Append(CXXFLAGS=["-std=c++11"]) if not IS_WINDOWS: - env.Append(CCFLAGS=["-pthread"]) + env.Append(CCFLAGS=["-pthread"], LINKFLAGS=["-pthread"]) def on_testing_line_output(self, line): if self.options.verbose: