For bootstrap builds (CLANG_ENABLE_BOOTSTRAP=ON) allow
arguments to be passed to the native tool used in CMake
for the stage2 step.
Can be used to pass extra arguments for enhanced versions
of build tools, e.g. distributed build options.
Differential D131665
[CMake] Support passing arguments to build tool (bootstrap). CarlosAlbertoEnciso on Aug 11 2022, 3:43 AM. Authored by
Details For bootstrap builds (CLANG_ENABLE_BOOTSTRAP=ON) allow Can be used to pass extra arguments for enhanced versions
Diff Detail Event TimelineComment Actions Noting related review: https://reviews.llvm.org/D115815 which added this variable to support this for other "external projects". Comment Actions To give more scope to the reviewers, the following CMake options illustrate the benefit of this patch. For example, if I want to do a dry run on stage-2, I will pass -DLLVM_EXTERNAL_PROJECT_BUILD_TOOL_ARGS="-n --verbose" -DCLANG_ENABLE_BOOTSTRAP=ON -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -G"Ninja" -DLLVM_EXTERNAL_PROJECT_BUILD_TOOL_ARGS="-n --verbose" When ninja builds stage-2 it receives the additional -n and --verbose options. The build_tool_args passed to BUILD_COMMAND looks like: '--;-n;--verbose' Comment Actions Resign as reviewer as I work with Carlos (and am not familiar enough with the details of this area). |