This is a fix from ita for "waf distclean configure build". Running
it as one command failed with missing config.h
from TaskGen import feature, after
import preproc
from TaskGen import feature, after
import preproc
@feature('cc', 'cxx')
@after('apply_type_vars', 'apply_lib_vars', 'apply_core')
def apply_incpaths(self):
lst = []
@feature('cc', 'cxx')
@after('apply_type_vars', 'apply_lib_vars', 'apply_core')
def apply_incpaths(self):
lst = []
+
+ try:
+ kak = self.bld.kak
+ except AttributeError:
+ kak = self.bld.kak = {}
+
# TODO move the uselib processing out of here
for lib in self.to_list(self.uselib):
for path in self.env['CPPPATH_' + lib]:
# TODO move the uselib processing out of here
for lib in self.to_list(self.uselib):
for path in self.env['CPPPATH_' + lib]:
if node:
self.env.append_value('INC_PATHS', node)
if node:
self.env.append_value('INC_PATHS', node)
@feature('cc')
@after('apply_incpaths')
def apply_obj_vars_cc(self):
@feature('cc')
@after('apply_incpaths')
def apply_obj_vars_cc(self):
+ try:
+ cac = self.bld.cac
+ except AttributeError:
+ cac = self.bld.cac = {}
# local flags come first
# set the user-defined includes paths
# local flags come first
# set the user-defined includes paths