Skip to content

Commit 99c285a

Browse files
committed
fixup
1 parent 8bb506f commit 99c285a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

builder/actions/cmake.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def _build_project(env, project, cmake_extra, build_tests=False, args_transforme
189189
# as off. Without UniqueList cmake will treat it as on.
190190
cmake_args += project.cmake_args(env)
191191
cmake_args += cmake_extra
192+
cmake_args += '-DCMAKE_VERBOSE_MAKEFILE=ON'
192193
if coverage:
193194
if c_path and "gcc" in c_path:
194195
# Tell cmake to add coverage related configuration. And make sure GCC is used to compile the project.
@@ -232,12 +233,8 @@ def _build_project(env, project, cmake_extra, build_tests=False, args_transforme
232233

233234
print("=== toolchain.host is {}".format(toolchain.host))
234235
# build & install
235-
if toolchain.host == 'ubuntu':
236-
sh.exec(*toolchain.shell_env, cmake, "--build", project_build_dir, "--config",
237-
build_config, "--verbose", "--target", "install", working_dir=working_dir, check=True)
238-
else:
239-
sh.exec(*toolchain.shell_env, cmake, "--build", project_build_dir, "--config",
240-
build_config, "--target", "install", working_dir=working_dir, check=True)
236+
sh.exec(*toolchain.shell_env, cmake, "--build", project_build_dir, "--config",
237+
build_config, "--target", "install", working_dir=working_dir, check=True)
241238

242239

243240
class CMakeBuild(Action):

0 commit comments

Comments
 (0)