Extract LLVM to specific directory.

This commit is contained in:
Chao Shen 2018-03-28 15:02:44 +08:00 committed by Fangrui Song
parent 6c95649904
commit 53138afabd

View File

@ -99,6 +99,8 @@ if(NOT EXISTS ${CLANG_ARCHIVE_EXTRACT_DIR})
message(STATUS "Extracting downloaded LLVM with CMake built-in tar ...") message(STATUS "Extracting downloaded LLVM with CMake built-in tar ...")
# CMake has builtin support for tar via the -E flag # CMake has builtin support for tar via the -E flag
execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xf ${CLANG_ARCHIVE_FILE} execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xf ${CLANG_ARCHIVE_FILE}
# Extract to here to allow running cmake from everywhere
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
OUTPUT_QUIET) OUTPUT_QUIET)
endif() endif()
endif() endif()