18
18
19
19
20
20
class CMakeProduct (product .Product ):
21
+ def is_verbose (self ):
22
+ return self .args .verbose_build
23
+
21
24
def build_with_cmake (self , build_targets , build_type , build_args ,
22
25
prefer_just_built_toolchain = False ):
23
26
assert self .toolchain .cmake is not None
@@ -29,6 +32,12 @@ def build_with_cmake(self, build_targets, build_type, build_args,
29
32
cmake_build .append (self .toolchain .distcc_pump )
30
33
cmake_build .extend ([self .toolchain .cmake , "--build" ])
31
34
35
+ # If we are verbose...
36
+ if self .is_verbose ():
37
+ # And ninja, add a -v.
38
+ if self .args .cmake_generator == "Ninja" :
39
+ build_args .append ('-v' )
40
+
32
41
generator_output_path = ""
33
42
if self .args .cmake_generator == "Ninja" :
34
43
generator_output_path = os .path .join (self .build_dir , "build.ninja" )
@@ -82,6 +91,13 @@ def test_with_cmake(self, executable_target, results_targets,
82
91
83
92
if self .toolchain .distcc_pump :
84
93
cmake_build .append (self .toolchain .distcc_pump )
94
+
95
+ # If we are verbose...
96
+ if self .is_verbose ():
97
+ # And ninja, add a -v.
98
+ if self .args .cmake_generator == "Ninja" :
99
+ build_args .append ('-v' )
100
+
85
101
cmake_args = [self .toolchain .cmake , "--build" , self .build_dir ,
86
102
"--config" , build_type , "--" ]
87
103
cmake_build .extend (cmake_args + build_args )
0 commit comments