Skip to content

Commit 8f9829d

Browse files
committed
build-script-impl: propagate --verbose-build to nested CMake builds
The main goal of this change is to ensure that the new build of the stdlib matches the same level of verbosity of the compiler build that spawn it. For now I'm not matching this behaviour to the regular CMake build products (which would be needed if want to target external projects configured in LLVM). Addresses rdar://144256800
1 parent 4306b57 commit 8f9829d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/swift_build_support/swift_build_support/build_script_invocation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,11 @@ def convert_to_impl_arguments(self):
552552
impl_env["HOST_VARIABLE_{}__{}".format(
553553
host_target.replace("-", "_"), name)] = value
554554

555+
if args.verbose_build:
556+
# This ensures all CMake builds (including the ones
557+
# called with `ExternalProject`) have verbose output
558+
impl_env["VERBOSE"] = "1"
559+
555560
return (impl_env, impl_args)
556561

557562
def compute_host_specific_variables(self):

0 commit comments

Comments
 (0)