only debug if __debug is setup

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-27 16:40:50 +02:00
commit b52939ccfe
2 changed files with 9 additions and 6 deletions

View file

@ -150,7 +150,8 @@ class Config:
env['__global'] = self.path.out_dir
# Submit debug flag to manifest, can be used by emulator and types
env['__debug'] = "yes"
if self.debug:
env['__debug'] = "yes"
# Required for recording source
env['__cdist_manifest'] = manifest