aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/interpreter.py b/interpreter.py
index e71f76a..13d3c8f 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -442,8 +442,12 @@ class Interpreter():
for a in args:
if not isinstance(a, str):
raise InvalidArguments('Line %d: Argument %s is not a string.' % (node.lineno(), str(a)))
- name= args[0]
- sources = args[1:]
+ name = args[0]
+ sources = []
+ for s in args[1:]:
+ print(s)
+ if not self.environment.is_header(s):
+ sources.append(s)
if len(sources) == 0:
raise InvalidArguments('Line %d: target has no source files.' % node.lineno())
if name in self.build.targets: