Merge pull request #1977 from lukasm91:issue_1955_remove_pthread_flags
PiperOrigin-RevId: 222861732
This commit is contained in:
commit
191f9336bc
|
@ -15,22 +15,23 @@ matrix:
|
||||||
sudo : true
|
sudo : true
|
||||||
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
||||||
script: ./ci/build-linux-bazel.sh
|
script: ./ci/build-linux-bazel.sh
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
sudo : true
|
sudo : true
|
||||||
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
||||||
script: ./ci/build-linux-bazel.sh
|
script: ./ci/build-linux-bazel.sh
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
|
group: deprecated-2017Q4
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
||||||
script: ./ci/build-linux-autotools.sh
|
script: ./ci/build-linux-autotools.sh
|
||||||
env: VERBOSE=1 CXXFLAGS=-std=c++11
|
env: VERBOSE=1 CXXFLAGS=-std=c++11
|
||||||
- os: linux
|
- os: linux
|
||||||
|
group: deprecated-2017Q4
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env: BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c++11
|
env: BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c++11
|
||||||
- os: linux
|
- os: linux
|
||||||
|
group: deprecated-2017Q4
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
|
||||||
- os: linux
|
- os: linux
|
||||||
|
|
|
@ -56,7 +56,6 @@ macro(config_compiler_and_linker)
|
||||||
unset(GTEST_HAS_PTHREAD)
|
unset(GTEST_HAS_PTHREAD)
|
||||||
if (NOT gtest_disable_pthreads AND NOT MINGW)
|
if (NOT gtest_disable_pthreads AND NOT MINGW)
|
||||||
# Defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT.
|
# Defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT.
|
||||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
if (CMAKE_USE_PTHREADS_INIT)
|
if (CMAKE_USE_PTHREADS_INIT)
|
||||||
set(GTEST_HAS_PTHREAD ON)
|
set(GTEST_HAS_PTHREAD ON)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user