Skip to content

Commit

Permalink
Enable verbose mode in debug mode
Browse files Browse the repository at this point in the history
Added a conditional block in builder.js that checks if debug mode is on. If it is, the "CMAKE_VERBOSE_MAKEFILE" flag is set to "ON" in cmake definition. This provides more detailed outputs during the build process, assisting in debugging.
  • Loading branch information
vicr123 committed Mar 21, 2024
1 parent fc5a15d commit 57ddb91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-project/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ module.exports = async options => {
}
}

// Modify cmakeDefines here to take advantage of caching even when debug builds are on
if (core.isDebug()) {
cmakeDefines["CMAKE_VERBOSE_MAKEFILE"] = "ON";
}

if (needBuild) {
await exec.exec(`cmake`, cmakeArgs);
await exec.exec(`cmake`, ["--build", buildDir]);
Expand Down

0 comments on commit 57ddb91

Please sign in to comment.