diff --git a/platformio/test/runners/googletest.py b/platformio/test/runners/googletest.py index 69df370c..612a7943 100644 --- a/platformio/test/runners/googletest.py +++ b/platformio/test/runners/googletest.py @@ -17,6 +17,7 @@ import re import click +from platformio.compat import IS_WINDOWS from platformio.test.result import TestCase, TestCaseSource, TestStatus from platformio.test.runners.base import TestRunnerBase @@ -100,7 +101,9 @@ class GoogletestTestRunner(TestRunnerBase): def configure_build_env(self, env): if self.platform.is_embedded(): return - env.Append(CXXFLAGS=["-std=c++11", "-pthread"]) + env.Append(CXXFLAGS=["-std=c++11"]) + if not IS_WINDOWS: + env.Append(CCFLAGS=["-pthread"]) def on_testing_line_output(self, line): if self.options.verbose: