scons: allow .inl file extension
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 27 Jun 2017 15:47:28 +0000 (10:47 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 30 Jun 2017 18:26:19 +0000 (13:26 -0500)
Intended for header files which are not meant to be included directly.

Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
scons/custom.py

index 544b15de1a4a2e8d154e0eec3abb026e5d9616a8..955247ccf2045424c32bffb19429a964a59d1398 100644 (file)
@@ -281,7 +281,7 @@ def parse_source_list(env, filename, names=None):
                     # cause duplicate actions.
                     f = f[len(cur_srcdir + '/'):]
                 # do not include any headers
-                if f.endswith(tuple(['.h','.hpp'])):
+                if f.endswith(tuple(['.h','.hpp','.inl'])):
                     continue
                 srcs.append(f)