summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-05-17 03:39:03 +0000
committerPetr Hosek <phosek@chromium.org>2018-05-17 03:39:03 +0000
commitdfbb9416695e04efbdd057c2a5b9afe62dda3963 (patch)
treedc6b9e53bf9e89511dd2b8bc9d6f6045a5ffe48d
parent2e50cec5e36314f2d7c8c3c841d81b9c9e79ba6b (diff)
downloadbcm5719-llvm-dfbb9416695e04efbdd057c2a5b9afe62dda3963.tar.gz
bcm5719-llvm-dfbb9416695e04efbdd057c2a5b9afe62dda3963.zip
[CMake] Support building shared library for Fuchsia
Fuchsia uses ELF as a file format and LLD as the linker so we can use the same implementation as other ELF based platforms. Differential Revision: https://reviews.llvm.org/D46991 llvm-svn: 332570
-rw-r--r--llvm/tools/llvm-shlib/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
index b2109c8758d..9119dfbad71 100644
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
+++ b/llvm/tools/llvm-shlib/CMakeLists.txt
@@ -39,6 +39,7 @@ add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
list(REMOVE_DUPLICATES LIB_NAMES)
if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU)
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
+ OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")) # FIXME: It should be "GNU ld for elf"
configure_file(
OpenPOWER on IntegriCloud