[PATCH] D32329: [libc++abi] Disable libc++ extern templates project-wide
Shoaib Meenai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 10 15:05:58 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL302739: [libc++abi] Disable libc++ extern templates project-wide (authored by smeenai).
Changed prior to commit:
https://reviews.llvm.org/D32329?vs=96061&id=98540#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32329
Files:
libcxxabi/trunk/CMakeLists.txt
libcxxabi/trunk/src/cxa_demangle.cpp
Index: libcxxabi/trunk/CMakeLists.txt
===================================================================
--- libcxxabi/trunk/CMakeLists.txt
+++ libcxxabi/trunk/CMakeLists.txt
@@ -457,6 +457,9 @@
add_definitions(-D_LIBCPP_HAS_THREAD_LIBRARY_EXTERNAL)
endif()
+# Prevent libc++abi from having library dependencies on libc++
+add_definitions(-D_LIBCPP_DISABLE_EXTERN_TEMPLATE)
+
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
Index: libcxxabi/trunk/src/cxa_demangle.cpp
===================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp
+++ libcxxabi/trunk/src/cxa_demangle.cpp
@@ -7,7 +7,6 @@
//
//===----------------------------------------------------------------------===//
-#define _LIBCPP_EXTERN_TEMPLATE(...)
#define _LIBCPP_NO_EXCEPTIONS
#include "__cxxabi_config.h"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32329.98540.patch
Type: text/x-patch
Size: 848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170510/edddd1a5/attachment.bin>
More information about the cfe-commits
mailing list