diff options
author | Petr Hosek <phosek@chromium.org> | 2018-06-07 21:01:32 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-06-07 21:01:32 +0000 |
commit | 623e2c928a080eed164b115645d2969962e5be99 (patch) | |
tree | 49573e3ab8b634aabf7ce0e55011773c19c3ef89 /llvm/lib/Support | |
parent | 2698640492b0c1e9d2d5bbba93ccd769f09f3c72 (diff) | |
download | bcm5719-llvm-623e2c928a080eed164b115645d2969962e5be99.tar.gz bcm5719-llvm-623e2c928a080eed164b115645d2969962e5be99.zip |
[Support] Link libzircon.so when building LLVM for Fuchsia
This is necessary for zx_* symbols.
Differential Revision: https://reviews.llvm.org/D47848
llvm-svn: 334232
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt index da4799c0f0b..3548a99934c 100644 --- a/llvm/lib/Support/CMakeLists.txt +++ b/llvm/lib/Support/CMakeLists.txt @@ -33,6 +33,9 @@ elseif( CMAKE_HOST_UNIX ) if( UNIX AND NOT (BEOS OR HAIKU) ) set(system_libs ${system_libs} m) endif() + if( FUCHSIA ) + set(system_libs ${system_libs} zircon) + endif() endif( MSVC OR MINGW ) add_llvm_library(LLVMSupport |