forked from platformio/platformio-core
Pass "-pthread" flag to GoogleTest only on Unix OS
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user