mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Pass "-pthread" flag to GoogleTest only on Unix OS
This commit is contained in:
@ -17,6 +17,7 @@ import re
|
|||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
|
from platformio.compat import IS_WINDOWS
|
||||||
from platformio.test.result import TestCase, TestCaseSource, TestStatus
|
from platformio.test.result import TestCase, TestCaseSource, TestStatus
|
||||||
from platformio.test.runners.base import TestRunnerBase
|
from platformio.test.runners.base import TestRunnerBase
|
||||||
|
|
||||||
@ -100,7 +101,9 @@ class GoogletestTestRunner(TestRunnerBase):
|
|||||||
def configure_build_env(self, env):
|
def configure_build_env(self, env):
|
||||||
if self.platform.is_embedded():
|
if self.platform.is_embedded():
|
||||||
return
|
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):
|
def on_testing_line_output(self, line):
|
||||||
if self.options.verbose:
|
if self.options.verbose:
|
||||||
|
Reference in New Issue
Block a user