[PATCH] D15550: [compiler-rt] On Darwin, link all frameworks with -fapplication-extension
Anna Zaks via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 15 17:42:55 PST 2015
zaks.anna created this revision.
zaks.anna added reviewers: llvm-commits, beanz.
The ASan dylib as well as other compiler-rt dylibs work with app extensions, so we should add -fapplication-extension to the link line when building them. This will avoid linker warnings when using the dylibs in app extensions.
(APIs unavailable to app extensions are listed here: https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionOverview.html#//apple_ref/doc/uid/TP40014214-CH2-SW6)
http://reviews.llvm.org/D15550
Files:
cmake/config-ix.cmake
Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -331,7 +331,8 @@
set(DARWIN_COMMON_LINKFLAGS
-stdlib=libc++
-lc++
- -lc++abi)
+ -lc++abi
+ -fapplication-extension)
set(DARWIN_osx_CFLAGS
${DARWIN_COMMON_CFLAGS}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15550.42948.patch
Type: text/x-patch
Size: 348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151216/67e298c2/attachment.bin>
More information about the llvm-commits
mailing list