Skip to content

Commit

Permalink
fix wrapper logging was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
rizsotto committed Aug 21, 2016
1 parent daa6526 commit e4b6f22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libscanbuild/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def wrapper():
""" It executes the compilation and calls the wrapped method. """

# set logging level when neeeded
verbose = bool(os.getenv(WRAPPER_VERBOSE, '0'))
verbose = int(os.getenv(WRAPPER_VERBOSE, '0'))
reconfigure_logging(verbose)
# find out what is the real compiler
is_cxx = os.path.basename(sys.argv[0]).endswith('++')
Expand Down
4 changes: 2 additions & 2 deletions libscanbuild/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def setup_environment(args, bin_dir, destination):
cxx_wrapper=os.path.join(bin_dir, COMPILER_WRAPPER_CXX),
c_compiler=args.cc,
cxx_compiler=args.cxx,
verbose=args.verbose > 2))
verbose=args.verbose))
# request analyzer run when destination directory is not None
environment.update({
'ANALYZE_BUILD_CLANG': args.clang,
Expand All @@ -140,8 +140,8 @@ def setup_environment(args, bin_dir, destination):
return environment


@wrapper_entry_point
@command_entry_point
@wrapper_entry_point
def analyze_build_wrapper(**kwargs):
""" Entry point for `analyze-cc` and `analyze-c++` compiler wrappers. """

Expand Down
4 changes: 2 additions & 2 deletions libscanbuild/intercept.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def setup_environment(args, destination, bin_dir):
cxx_wrapper=os.path.join(bin_dir, COMPILER_WRAPPER_CXX),
c_compiler=args.cc,
cxx_compiler=args.cxx,
verbose=args.verbose > 2))
verbose=args.verbose))
elif sys.platform == 'darwin':
environment.update({
'DYLD_INSERT_LIBRARIES': intercept_library,
Expand All @@ -143,8 +143,8 @@ def setup_environment(args, destination, bin_dir):
return environment


@wrapper_entry_point
@command_entry_point
@wrapper_entry_point
def intercept_build_wrapper(**kwargs):
""" Entry point for `intercept-cc` and `intercept-c++` compiler wrappers.
Expand Down

0 comments on commit e4b6f22

Please sign in to comment.