This repository was archived by the owner on Feb 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gtest to 1.7.0 to resolve problems with libc++
- Loading branch information
Showing
34 changed files
with
2,568 additions
and
1,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,16 @@ macro(config_compiler_and_linker) | |
# Newlines inside flags variables break CMake's NMake generator. | ||
# TODO([email protected]): Add -RTCs and -RTCu to debug builds. | ||
set(cxx_base_flags "-GS -W4 -WX -wd4127 -wd4251 -wd4275 -nologo -J -Zi") | ||
if (MSVC_VERSION LESS 1400) | ||
# Suppress spurious warnings MSVC 7.1 sometimes issues. | ||
# Forcing value to bool. | ||
set(cxx_base_flags "${cxx_base_flags} -wd4800") | ||
# Copy constructor and assignment operator could not be generated. | ||
set(cxx_base_flags "${cxx_base_flags} -wd4511 -wd4512") | ||
# Compatibility warnings not applicable to Google Test. | ||
# Resolved overload was found by argument-dependent lookup. | ||
set(cxx_base_flags "${cxx_base_flags} -wd4675") | ||
endif() | ||
set(cxx_base_flags "${cxx_base_flags} -D_UNICODE -DUNICODE -DWIN32 -D_WIN32") | ||
set(cxx_base_flags "${cxx_base_flags} -DSTRICT -DWIN32_LEAN_AND_MEAN") | ||
set(cxx_exception_flags "-EHsc -D_HAS_EXCEPTIONS=1") | ||
|
@@ -69,7 +79,8 @@ macro(config_compiler_and_linker) | |
# whether RTTI is enabled. Therefore we define GTEST_HAS_RTTI | ||
# explicitly. | ||
set(cxx_no_rtti_flags "-fno-rtti -DGTEST_HAS_RTTI=0") | ||
set(cxx_strict_flags "-Wextra") | ||
set(cxx_strict_flags | ||
"-Wextra -Wno-unused-parameter -Wno-missing-field-initializers") | ||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro") | ||
set(cxx_exception_flags "-features=except") | ||
# Sun Pro doesn't provide macros to indicate whether exceptions and | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
diff -r a5e72dd0ecf3 test/gtest/include/gtest/gtest-typed-test.h | ||
--- a/test/gtest/include/gtest/gtest-typed-test.h Mon Nov 04 11:47:43 2013 -0800 | ||
+++ b/test/gtest/include/gtest/gtest-typed-test.h Mon Nov 04 11:49:12 2013 -0800 | ||
@@ -31,6 +31,7 @@ | ||
|
||
#ifndef GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_ | ||
#define GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_ | ||
+#pragma GCC system_header | ||
|
||
// This header implements typed tests and type-parameterized tests. | ||
|
||
diff -r a5e72dd0ecf3 test/gtest/src/gtest.cc | ||
--- a/test/gtest/src/gtest.cc Mon Nov 04 11:47:43 2013 -0800 | ||
+++ b/test/gtest/src/gtest.cc Mon Nov 04 11:49:12 2013 -0800 | ||
@@ -33,6 +33,7 @@ | ||
|
||
#include "gtest/gtest.h" | ||
#include "gtest/gtest-spi.h" | ||
+#pragma GCC system_header | ||
|
||
#include <ctype.h> | ||
#include <math.h> | ||
diff -r c33b44f8a9a1 test/gtest/include/gtest/internal/gtest-port.h | ||
--- a/test/gtest/include/gtest/internal/gtest-port.h Wed Nov 06 11:23:38 2013 -0800 | ||
+++ b/test/gtest/include/gtest/internal/gtest-port.h Wed Nov 06 17:12:57 2013 -0800 | ||
@@ -39,6 +39,7 @@ | ||
|
||
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ | ||
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ | ||
+#pragma GCC system_header | ||
|
||
// The user can define the following macros in the build script to | ||
// control Google Test's behavior. If the user doesn't define a macro | ||
diff -r e980730656c1 test/gtest/include/gtest/gtest-printers.h | ||
--- a/test/gtest/include/gtest/gtest-printers.h Wed Nov 06 17:13:57 2013 -0800 | ||
+++ b/test/gtest/include/gtest/gtest-printers.h Thu Nov 07 09:29:28 2013 -0800 | ||
@@ -94,6 +94,7 @@ | ||
|
||
#ifndef GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_ | ||
#define GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_ | ||
+#pragma GCC system_header | ||
|
||
#include <ostream> // NOLINT | ||
#include <sstream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.