From b9fa7a4082db20c9a11b7580d705147597d1276c Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Mon, 28 Oct 2024 21:25:06 -0600 Subject: [PATCH] gccdeps: import from waf-2.1.3 --- gccdeps.py | 84 +++++++++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/gccdeps.py b/gccdeps.py index fe393b571d..a58e56d7ce 100644 --- a/gccdeps.py +++ b/gccdeps.py @@ -17,7 +17,7 @@ Usage:: import os, re, threading from waflib import Task, Logs, Utils, Errors -from waflib.Tools import c_preproc +from waflib.Tools import asm, c, c_preproc, cxx from waflib.TaskGen import before_method, feature lock = threading.Lock() @@ -29,13 +29,6 @@ if not c_preproc.go_absolute: # Third-party tools are allowed to add extra names in here with append() supported_compilers = ['gas', 'gcc', 'icc', 'clang'] -def scan(self): - if not self.__class__.__name__ in self.env.ENABLE_GCCDEPS: - return super(self.derived_gccdeps, self).scan() - nodes = self.generator.bld.node_deps.get(self.uid(), []) - names = [] - return (nodes, names) - re_o = re.compile(r"\.o$") re_splitter = re.compile(r'(?