aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDECompilerSettings.cmake
diff options
context:
space:
mode:
authorAlex Merry <kde@randomguy3.me.uk>2014-01-28 16:08:55 +0000
committerAlex Merry <kde@randomguy3.me.uk>2014-01-29 13:18:02 +0000
commit4e867a836bafd113c6d4b34c17eeb564089308a2 (patch)
treef0e5f85b0306f1264a94e61415f22f0c9bf5f7c2 /kde-modules/KDECompilerSettings.cmake
parent7ca3a6b1e48ed49eb582e1451eb5d7687adb6b37 (diff)
downloadextra-cmake-modules-4e867a836bafd113c6d4b34c17eeb564089308a2.tar.gz
extra-cmake-modules-4e867a836bafd113c6d4b34c17eeb564089308a2.tar.bz2
Remove the allocator and visibility check
I am reasonably sure the allocator check is out of date, given our minimum GCC version, and it was not used for anything interesting anyway. The visibility check will not be performed in practice, as this file will almost always be included before any check for Qt. REVIEW: 115360
Diffstat (limited to 'kde-modules/KDECompilerSettings.cmake')
-rw-r--r--kde-modules/KDECompilerSettings.cmake28
1 files changed, 0 insertions, 28 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index a4683b04..6b94668b 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -29,38 +29,10 @@
# Toolchain minimal requirements
############################################################
-set(_GCC_COMPILED_WITH_BAD_ALLOCATOR FALSE)
-
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.2.0")
message(FATAL_ERROR "GCC 4.2 or later is required")
endif()
-
- if (NOT WIN32)
- # FIXME: This test was originally used to decide whether to
- # enable hidden vis for GCC >= 4.1 (it would not be
- # if GCC had the mt allocator).
- # 1. Is this something that matters for GCC >= 4.2?
- # 2. If so, do we actually want to change the value
- # of CMAKE_CXX_VISIBILITY_PRESET?
- # All I can find about this is
- # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664,
- # esp. comments 90/91 and 104-108. I think requiring
- # GCC 4.2 and some version of binutils (2.18?) should
- # be enough.
- set(_GCC_COMPILED_WITH_BAD_ALLOCATOR FALSE)
- exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} -v OUTPUT_VARIABLE _gcc_alloc_info)
- string(REGEX MATCH "(--enable-libstdcxx-allocator=mt)" _GCC_COMPILED_WITH_BAD_ALLOCATOR "${_gcc_alloc_info}")
- endif()
-endif()
-
-if (NOT WIN32 AND NOT _GCC_COMPILED_WITH_BAD_ALLOCATOR)
- # FIXME: in practice, this target is never going to exist at this point
- if (TARGET Qt5::Core)
- if(NOT QT_VISIBILITY_AVAILABLE)
- message(FATAL_ERROR "Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation (try passing --reduce-exports to configure).")
- endif()
- endif()
endif()