summaryrefslogtreecommitdiffstats
path: root/scons/custom.py
diff options
context:
space:
mode:
Diffstat (limited to 'scons/custom.py')
-rw-r--r--scons/custom.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/custom.py b/scons/custom.py
index 09c937e8bce..043793b5deb 100644
--- a/scons/custom.py
+++ b/scons/custom.py
@@ -276,6 +276,9 @@ def parse_source_list(env, filename, names=None):
# Prefer relative source paths, as absolute files tend to
# cause duplicate actions.
f = f[len(cur_srcdir + '/'):]
+ # do not include any headers
+ if f.endswith('.h'):
+ continue
srcs.append(f)
src_lists[sym] = srcs