Changeset View
Changeset View
Standalone View
Standalone View
clang/tools/driver/CMakeLists.txt
Show All 11 Lines | set( LLVM_LINK_COMPONENTS | ||||
ObjCARCOpts | ObjCARCOpts | ||||
Option | Option | ||||
ScalarOpts | ScalarOpts | ||||
Support | Support | ||||
TransformUtils | TransformUtils | ||||
Vectorize | Vectorize | ||||
) | ) | ||||
option(CLANG_PLUGIN_SUPPORT "Build clang with plugin support" ON) | |||||
# Support plugins. | # Support plugins. | ||||
if(CLANG_PLUGIN_SUPPORT) | if(CLANG_PLUGIN_SUPPORT) | ||||
set(support_plugins SUPPORT_PLUGINS) | set(support_plugins SUPPORT_PLUGINS) | ||||
endif() | endif() | ||||
add_clang_tool(clang | add_clang_tool(clang | ||||
driver.cpp | driver.cpp | ||||
cc1_main.cpp | cc1_main.cpp | ||||
Show All 17 Lines | |||||
if(WIN32 AND NOT CYGWIN) | if(WIN32 AND NOT CYGWIN) | ||||
# Prevent versioning if the buildhost is targeting for Win32. | # Prevent versioning if the buildhost is targeting for Win32. | ||||
else() | else() | ||||
set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION}) | set_target_properties(clang PROPERTIES VERSION ${CLANG_EXECUTABLE_VERSION}) | ||||
endif() | endif() | ||||
# Support plugins. | # Support plugins. | ||||
if(CLANG_PLUGIN_SUPPORT) | if(CLANG_PLUGIN_SUPPORT) | ||||
simon_tatham: I think we've managed to fix our build by changing this line so that it tests
```if… | |||||
export_executable_symbols_for_plugins(clang) | export_executable_symbols_for_plugins(clang) | ||||
endif() | endif() | ||||
add_dependencies(clang clang-resource-headers) | add_dependencies(clang clang-resource-headers) | ||||
if(NOT CLANG_LINKS_TO_CREATE) | if(NOT CLANG_LINKS_TO_CREATE) | ||||
set(CLANG_LINKS_TO_CREATE clang++ clang-cl clang-cpp) | set(CLANG_LINKS_TO_CREATE clang++ clang-cl clang-cpp) | ||||
endif() | endif() | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |
I think we've managed to fix our build by changing this line so that it tests
because that fixes the cmake complaint that you can't link against an executable that didn't have ENABLE_EXPORTS.