if (NOT ${LLVM_PACKAGE_VERSION} VERSION_GREATER "3.4")
  set(LLVM_LINK_COMPONENTS core engine)
else()
  set(LLVM_LINK_COMPONENTS core support)
endif()

add_llvm_loadable_module(LLVMsvc15
				Prepare.cpp
				InitializeUninitialized.cpp
				RemoveInfiniteLoops.cpp
				DeleteUndefined.cpp
				ReplaceUBSan.cpp
				CheckUnsupported.cpp)

if (NOT ${LLVM_PACKAGE_VERSION} VERSION_GREATER "3.4")
  set(LLVM_LINK_COMPONENTS core engine)
endif()

add_llvm_loadable_module(LLVMsvc15
				Prepare.cpp
				InitializeUninitialized.cpp
				RemoveInfiniteLoops.cpp
				DeleteUndefined.cpp
				ReplaceUBSan.cpp
				CheckUnsupported.cpp)

Revert "CMake: link against llvm"
Revert "CMake: link against llvm"

This reverts commit d6d590eb8f6e8e26b7b53526a29f464f08ee53b1.

This seems to break static builds.

Static builds are evil!

Signed-off-by: Jiri Slaby <3a42a5d4389f053b0ed9c8486a7a83f2a41a9eea@fi.muni.cz>
