mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
f96eecf20b
Windows doesn't properly support pass plugins (as a shared library can't have undefined references, which pass plugins assume, being loaded into a host process that contains provides them), thus disable building it and the corresponding test. This matches what was done for the passes unit test in bc8e44218810c0db6328b9809c959ceb7d43e3f5. Differential Revision: https://reviews.llvm.org/D79771
20 lines
643 B
CMake
20 lines
643 B
CMake
if(LLVM_BYE_LINK_INTO_TOOLS)
|
|
message(WARNING "Setting LLVM_BYE_LINK_INTO_TOOLS=ON only makes sense for testing purpose")
|
|
endif()
|
|
|
|
# The plugin expects to not link against the Support and Core libraries,
|
|
# but expects them to exist in the process loading the plugin. This doesn't
|
|
# work with DLLs on Windows (where a shared library can't have undefined
|
|
# references), so just skip this example on Windows.
|
|
if (NOT WIN32)
|
|
add_llvm_pass_plugin(Bye
|
|
Bye.cpp
|
|
DEPENDS
|
|
intrinsics_gen
|
|
BUILDTREE_ONLY
|
|
)
|
|
|
|
install(TARGETS ${name} RUNTIME DESTINATION examples)
|
|
set_target_properties(${name} PROPERTIES FOLDER "Examples")
|
|
endif()
|