diff options
| author | Shankar Easwaran <shankare@codeaurora.org> | 2015-02-27 04:39:16 +0000 |
|---|---|---|
| committer | Shankar Easwaran <shankare@codeaurora.org> | 2015-02-27 04:39:16 +0000 |
| commit | 60aa7985ccef05dd038627ff35a31892edf2a778 (patch) | |
| tree | 60c1637575614cda5dd940c15976c4612b9c5858 | |
| parent | 41c8b56a2a398ff8c4fd95681b99f34b3417fa1b (diff) | |
| download | bcm5719-llvm-60aa7985ccef05dd038627ff35a31892edf2a778.tar.gz bcm5719-llvm-60aa7985ccef05dd038627ff35a31892edf2a778.zip | |
[CMake] Cleanup
llvm-svn: 230731
| -rw-r--r-- | lld/CMakeLists.txt | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt index 9107aae990a..d7498f4bbe4 100644 --- a/lld/CMakeLists.txt +++ b/lld/CMakeLists.txt @@ -1,8 +1,3 @@ -# If we are not building as a part of LLVM, build lld as a standalone project, -# using LLVM as an external library. - -cmake_minimum_required(VERSION 2.8) - set(LLD_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(LLD_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) @@ -71,20 +66,6 @@ if (LLD_USE_VTUNE) endif() endif() -# lld requires c++11 to build. Make sure that we have a compiler and standard -# library combination that can do that. -if (NOT MSVC) - # gcc and clang require the -std=c++0x or -std=c++11 flag. - if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang" AND - NOT ("${CMAKE_CXX_FLAGS}" MATCHES ".*-std=(c|gnu)\\+\\+(0x|11|1y).*")) - message(FATAL_ERROR - "lld requires c++11. Clang and gcc require -std=c++0x or -std=c++11 to " - "enter this mode. Please set CMAKE_CXX_FLAGS accordingly.") - endif() -elseif (MSVC_VERSION LESS 1700) - message(FATAL_ERROR "The selected compiler does not support c++11 which is " - "required to build lld.") -endif() if (MSVC) add_definitions(-wd4530) # Suppress 'warning C4530: C++ exception handler used, but unwind semantics are not enabled.' |

