CMake: Provide LLVM_PLUGIN_EXT definition
authorAlp Toker <alp@nuanti.com>
Wed, 8 Jan 2014 11:10:24 +0000 (11:10 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 8 Jan 2014 11:10:24 +0000 (11:10 +0000)
commitb1adf0890a1c19b2fd32a525c7c99e9db6da493f
tree9f1853e1702aa01c31b084b8173908fee77d1262
parent958cc01fffc3df2776d24dc045c80f488ae3ba79
CMake: Provide LLVM_PLUGIN_EXT definition

This is needed to support the addition of tests for clang loadable plugins.

In clang, plugins are built as modules (bundles on OS X) rather than dynamic
libraries (dylib) so the build system needs to inform lit of the actual
file extension in use, typically '.so' on Unix and '.dll' on Windows.

(LLVM itself should probably switch to this scheme to fix PR14903 once and for
all.)

No change in build output or functionality intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198746 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
cmake/modules/HandleLLVMOptions.cmake