forked from ipasimulator/ipasim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclang-x86-Debug.cmake
21 lines (20 loc) · 974 Bytes
/
clang-x86-Debug.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
list (APPEND CMAKE_MODULE_PATH "${SOURCE_DIR}/scripts")
include (CommonVariables)
file (MAKE_DIRECTORY "${DEBUG_CLANG_CMAKE_DIR}")
execute_process (
COMMAND "${CMAKE_COMMAND}" -G Ninja
"-DLLVM_TARGETS_TO_BUILD=X86;ARM"
"-DLLVM_EXTERNAL_CLANG_SOURCE_DIR=${SOURCE_DIR}/deps/clang"
"-DLLVM_EXTERNAL_LLD_SOURCE_DIR=${SOURCE_DIR}/deps/lld"
"-DLLVM_EXTERNAL_LLDB_SOURCE_DIR=${SOURCE_DIR}/deps/lldb"
-DCMAKE_BUILD_TYPE=Debug
"-DCMAKE_C_COMPILER=${LLVM_BIN_DIR}/clang-cl.exe"
"-DCMAKE_CXX_COMPILER=${LLVM_BIN_DIR}/clang-cl.exe"
"-DCMAKE_LINKER=${LLVM_BIN_DIR}/lld-link.exe"
"-DLLVM_TABLEGEN=${RELEASE_CLANG_CMAKE_DIR}/bin/llvm-tblgen.exe"
"-DCLANG_TABLEGEN=${RELEASE_CLANG_CMAKE_DIR}/bin/clang-tblgen.exe"
"-DCMAKE_C_FLAGS=-m32"
"-DCMAKE_CXX_FLAGS=-m32"
-DCMAKE_EXPORT_COMPILE_COMMANDS=On
"${SOURCE_DIR}/deps/llvm"
WORKING_DIRECTORY "${DEBUG_CLANG_CMAKE_DIR}")