Skip to content

Commit

Permalink
Merge pull request #4073
Browse files Browse the repository at this point in the history
3474154 gtest: use -fPIC with CLANG too (moneromooo-monero)
  • Loading branch information
luigi1111 committed Jul 19, 2018
2 parents be81a27 + 3474154 commit 5fad1c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/gtest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ macro(config_compiler_and_linker)
set(cxx_no_rtti_flags "-fno-rtti -DGTEST_HAS_RTTI=0")
set(cxx_strict_flags
"-Wextra -Wno-unused-parameter -Wno-missing-field-initializers")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(cxx_base_flags "-Wall -Wshadow -fPIC")
set(cxx_exception_flags "-fexceptions")
set(cxx_no_exception_flags "-fno-exceptions")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
set(cxx_exception_flags "-features=except")
# Sun Pro doesn't provide macros to indicate whether exceptions and
Expand Down

0 comments on commit 5fad1c5

Please sign in to comment.