llvm.org GIT mirror llvm / 203b656
[cmake] Fix bug in r358779 - [CMake] Pass monorepo build settings in cross compile Escape semicolons in the targets list so that cmake doesn't expand them to spaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358859 91177308-0d34-0410-b5e6-96231b3b80d8 Don Hinton 5 months ago
1 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4444 string(REPLACE ";" "$" experimental_targets_to_build_arg
4545 "${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD}")
4646
47 string(REPLACE ";" "$" llvm_enable_projects_arg
48 "${LLVM_ENABLE_PROJECTS}")
49 string(REPLACE ";" "$" llvm_external_projects_arg
50 "${LLVM_EXTERNAL_PROJECTS}")
51
4752 add_custom_command(OUTPUT ${LLVM_${target_name}_BUILD}/CMakeCache.txt
4853 COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}"
4954 -DCMAKE_MAKE_PROGRAM="${CMAKE_MAKE_PROGRAM}"
5358 -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${experimental_targets_to_build_arg}"
5459 -DLLVM_DEFAULT_TARGET_TRIPLE="${TARGET_TRIPLE}"
5560 -DLLVM_TARGET_ARCH="${LLVM_TARGET_ARCH}"
56 -DLLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PROJECTS}"
57 -DLLVM_EXTERNAL_PROJECTS="${LLVM_EXTERNAL_PROJECTS}"
61 -DLLVM_ENABLE_PROJECTS="${llvm_enable_projects_arg}"
62 -DLLVM_EXTERNAL_PROJECTS="${llvm_external_projects_arg}"
5863 -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN="${LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN}"
5964 ${build_type_flags} ${linker_flag} ${external_clang_dir}
6065 WORKING_DIRECTORY ${LLVM_${target_name}_BUILD}