mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Partially revert "[CMake] Fix building with -DBUILD_SHARED_LIBS=ON on mingw"
This reverts parts of commit 609ef948387ba40e3693c2bd693d82ca34dcdc02, as it caused build failures on windows if LLVM_BUILD_EXAMPLES was enabled, due to Bye being added as a dependency of the lit tests.
This commit is contained in:
parent
412512e2cd
commit
a70fa5b52f
@ -2,18 +2,12 @@ if(LLVM_BYE_LINK_INTO_TOOLS)
|
|||||||
message(WARNING "Setting LLVM_BYE_LINK_INTO_TOOLS=ON only makes sense for testing purpose")
|
message(WARNING "Setting LLVM_BYE_LINK_INTO_TOOLS=ON only makes sense for testing purpose")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# The plugin expects to not link against the Support and Core libraries,
|
add_llvm_pass_plugin(Bye
|
||||||
# but expects them to exist in the process loading the plugin. This doesn't
|
Bye.cpp
|
||||||
# work with DLLs on Windows (where a shared library can't have undefined
|
DEPENDS
|
||||||
# references), so just skip this testcase on Windows.
|
intrinsics_gen
|
||||||
if (NOT WIN32)
|
BUILDTREE_ONLY
|
||||||
add_llvm_pass_plugin(Bye
|
)
|
||||||
Bye.cpp
|
|
||||||
DEPENDS
|
|
||||||
intrinsics_gen
|
|
||||||
BUILDTREE_ONLY
|
|
||||||
)
|
|
||||||
|
|
||||||
install(TARGETS ${name} RUNTIME DESTINATION examples)
|
install(TARGETS ${name} RUNTIME DESTINATION examples)
|
||||||
set_target_properties(${name} PROPERTIES FOLDER "Examples")
|
set_target_properties(${name} PROPERTIES FOLDER "Examples")
|
||||||
endif()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user