From 1d5ec2171f937e5203a170b58b513e0675f16032 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Thu, 4 Aug 2016 10:24:48 +0000 Subject: [PATCH] Remove LLVM_ENABLE_LIBCXXABI libc++.so is now a linker script that includes -lc++abi if necessary. Differential Revision: https://reviews.llvm.org/D22861 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277714 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 1 - cmake/modules/HandleLLVMStdlib.cmake | 5 ----- 2 files changed, 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1854e53cf94b..c773a707762b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -336,7 +336,6 @@ else() endif() option(LLVM_ENABLE_CXX1Y "Compile with C++1y enabled." OFF) option(LLVM_ENABLE_LIBCXX "Use libc++ if available." OFF) -option(LLVM_ENABLE_LIBCXXABI "Use libc++abi when using libc++." OFF) option(LLVM_ENABLE_LLD "Use lld as C and C++ linker." OFF) option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON) option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF) diff --git a/cmake/modules/HandleLLVMStdlib.cmake b/cmake/modules/HandleLLVMStdlib.cmake index b07781c3f290..c0512ac34f6d 100644 --- a/cmake/modules/HandleLLVMStdlib.cmake +++ b/cmake/modules/HandleLLVMStdlib.cmake @@ -20,11 +20,6 @@ if(NOT DEFINED LLVM_STDLIB_HANDLED) append("-stdlib=libc++" CMAKE_CXX_FLAGS CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS) - if(LLVM_ENABLE_LIBCXXABI) - append("-lc++abi" - CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS - CMAKE_MODULE_LINKER_FLAGS) - endif() else() message(WARNING "Can't specify libc++ with '-stdlib='") endif()