mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[cmake] Emit an error for -DBUILD_SHARED_LIBS=ON on Windows
Summary: The BUILD_SHARED_LIBS=ON build fails on Windows, so prevent users from enabling it. Reviewers: beanz, smeenai, compnerd, phosek Reviewed By: beanz Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70161
This commit is contained in:
parent
2dbca15279
commit
9c7e12f3ab
@ -574,6 +574,9 @@ if(MSVC)
|
||||
# Set this variable to OFF here so it can't be set with a command-line
|
||||
# argument.
|
||||
set (LLVM_LINK_LLVM_DYLIB OFF)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
message(FATAL_ERROR "BUILD_SHARED_LIBS options is not supported on Windows.")
|
||||
endif()
|
||||
else()
|
||||
option(LLVM_LINK_LLVM_DYLIB "Link tools against the libllvm dynamic library" OFF)
|
||||
option(LLVM_BUILD_LLVM_C_DYLIB "Build libllvm-c re-export library (Darwin only)" OFF)
|
||||
|
Loading…
Reference in New Issue
Block a user