[PATCH] D15550: [compiler-rt] On Darwin, link all frameworks with -fapplication-extension

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 6 15:18:48 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL256989: [compiler-rt] On Darwin, link all frameworks with -fapplication-extension (authored by zaks).

Changed prior to commit:
  http://reviews.llvm.org/D15550?vs=42948&id=44173#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D15550

Files:
  compiler-rt/trunk/cmake/config-ix.cmake

Index: compiler-rt/trunk/cmake/config-ix.cmake
===================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake
+++ compiler-rt/trunk/cmake/config-ix.cmake
@@ -334,6 +334,11 @@
     -lc++
     -lc++abi)
   
+  check_linker_flag("-fapplication-extension" COMPILER_RT_HAS_APP_EXTENSION)
+  if(COMPILER_RT_HAS_APP_EXTENSION)
+    list(APPEND DARWIN_COMMON_LINKFLAGS "-fapplication-extension")
+  endif()
+
   set(DARWIN_osx_CFLAGS
     ${DARWIN_COMMON_CFLAGS}
     -mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15550.44173.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160106/88dc49d6/attachment.bin>


More information about the llvm-commits mailing list