Skip to content

Commit

Permalink
(#4121) [boost] debug_level=0 should emit -d0
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb authored Feb 3, 2021
1 parent 0e56287 commit ed8dfd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/boost/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def _build_bcp(self):
with tools.vcvars(self.settings) if self._is_msvc else tools.no_op():
with tools.chdir(folder):
command = "%s -j%s --abbreviate-paths toolset=%s" % (self._b2_exe, tools.cpu_count(), self._toolset)
if self.options.debug_level:
if "debug_level" in self.options:
command += " -d%d" % self.options.debug_level
self.output.warn(command)
self.run(command, run_environment=True)
Expand Down Expand Up @@ -904,7 +904,7 @@ def add_defines(library):
"--prefix=%s" % self.package_folder,
"-j%s" % tools.cpu_count(),
"--abbreviate-paths"])
if self.options.debug_level:
if "debug_level" in self.options:
flags.append("-d%d" % self.options.debug_level)
return flags

Expand Down

0 comments on commit ed8dfd2

Please sign in to comment.