Skip to content

Commit

Permalink
Remove gcc 4.4 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Mar 7, 2020
1 parent 48e8d0e commit b1adaa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
11 changes: 0 additions & 11 deletions support/cmake/cxx14.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,6 @@ endif ()

set(CMAKE_REQUIRED_FLAGS ${CXX_STANDARD_FLAG})

# Check if variadic templates are working and not affected by GCC bug 39653:
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39653
# Can be removed once gcc 4.4 support is dropped.
check_cxx_source_compiles("
template <class T, class ...Types>
struct S { typedef typename S<Types...>::type type; };
int main() {}" SUPPORTS_VARIADIC_TEMPLATES)
if (NOT SUPPORTS_VARIADIC_TEMPLATES)
set (SUPPORTS_VARIADIC_TEMPLATES OFF)
endif ()

# Check if user-defined literals are available
check_cxx_source_compiles("
void operator\"\" _udl(long double);
Expand Down
4 changes: 1 addition & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ else ()
target_compile_definitions(gmock PUBLIC GTEST_HAS_PTHREAD=0)
endif ()

if (NOT SUPPORTS_VARIADIC_TEMPLATES)
target_compile_definitions(gmock PUBLIC GTEST_LANG_CXX11=0)
endif ()
target_compile_definitions(gmock PUBLIC GTEST_LANG_CXX11=0)

if (MSVC)
# Workaround a bug in implementation of variadic templates in MSVC11.
Expand Down

0 comments on commit b1adaa9

Please sign in to comment.