diff options
| author | Stephane Lajoie <dada@typicus.org> | 2017-07-03 10:00:36 -0400 |
|---|---|---|
| committer | Stephane Lajoie <dada@typicus.org> | 2017-07-03 10:00:36 -0400 |
| commit | 83c7bfc3cec78f82608581ef110ee550aae71234 (patch) | |
| tree | 37e02ecc559b58e01d65db82e29dfa374dbf0e4d | |
| parent | f4e797920f7b0be50881469d018cd6f7d92dba82 (diff) | |
| download | vcpkg-83c7bfc3cec78f82608581ef110ee550aae71234.tar.gz vcpkg-83c7bfc3cec78f82608581ef110ee550aae71234.zip | |
Reduce size of the build and fix post-build errors.
| -rw-r--r-- | ports/llvm/portfile.cmake | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/ports/llvm/portfile.cmake b/ports/llvm/portfile.cmake index a71c941ed..c3c6121a2 100644 --- a/ports/llvm/portfile.cmake +++ b/ports/llvm/portfile.cmake @@ -25,18 +25,30 @@ vcpkg_extract_source_archive(${ARCHIVE}) vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA # Disable this option if project cannot be built with Ninja - OPTIONS -DLLVM_BUILD_TOOLS=OFF - # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2 - # OPTIONS_RELEASE -DOPTIMIZE=1 - # OPTIONS_DEBUG -DDEBUGGABLE=1 + PREFER_NINJA + OPTIONS + -DLLVM_BUILD_TOOLS=OFF + -DLLVM_BUILD_UTILS=OFF + -DLLVM_TARGETS_TO_BUILD=X86 ) vcpkg_install_cmake() +# Move cmake modules to correct vcpkg location and remove extra copy +file(COPY ${CURRENT_PACKAGES_DIR}/lib/cmake/llvm DESTINATION ${CURRENT_PACKAGES_DIR}/share) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake) + # Remove extra copies of include files in debug directory file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +# Remove bin directories +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin) + +# Remove one empty include subdirectory +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/llvm/MC/MCAnalysis) + # Handle copyright file(COPY ${SOURCE_PATH}/LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/llvm) file(RENAME ${CURRENT_PACKAGES_DIR}/share/llvm/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/llvm/copyright) |
