|
|
|
@ -2648,6 +2648,8 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485''')) |
|
|
|
|
def generate_scanbuild(self): |
|
|
|
|
if not environment.detect_scanbuild(): |
|
|
|
|
return |
|
|
|
|
if ('', 'scan-build') in self.build.run_target_names: |
|
|
|
|
return |
|
|
|
|
cmd = self.environment.get_build_command() + \ |
|
|
|
|
['--internal', 'scanbuild', self.environment.source_dir, self.environment.build_dir] + \ |
|
|
|
|
self.environment.get_build_command() + self.get_user_option_args() |
|
|
|
@ -2665,6 +2667,8 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485''')) |
|
|
|
|
return |
|
|
|
|
if target_name in self.all_outputs: |
|
|
|
|
return |
|
|
|
|
if ('', target_name) in self.build.run_target_names: |
|
|
|
|
return |
|
|
|
|
cmd = self.environment.get_build_command() + \ |
|
|
|
|
['--internal', 'clang' + name, self.environment.source_dir, self.environment.build_dir] |
|
|
|
|
elem = NinjaBuildElement(self.all_outputs, 'meson-' + target_name, 'CUSTOM_COMMAND', 'PHONY') |
|
|
|
@ -2688,6 +2692,8 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485''')) |
|
|
|
|
import shutil |
|
|
|
|
if not shutil.which(tool): |
|
|
|
|
return |
|
|
|
|
if ('', target_name) in self.build.run_target_names: |
|
|
|
|
return |
|
|
|
|
if target_name in self.all_outputs: |
|
|
|
|
return |
|
|
|
|
cmd = self.environment.get_build_command() + \ |
|
|
|
|