summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-02-18 10:01:09 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-02-18 10:09:27 +0100
commit44c5fe27d670b61ac1d1203401ce37f0f5924a8e (patch)
tree38073b6d8aaa07f94e4e771a27baa2712b6ea63a
parentRemove <linux/rbtree.h> (diff)
downloadrtems-libbsd-44c5fe27d670b61ac1d1203401ce37f0f5924a8e.tar.bz2
builder.py: Accept C++ source files
-rwxr-xr-xbuilder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/builder.py b/builder.py
index 7f4e7170..1679b6cb 100755
--- a/builder.py
+++ b/builder.py
@@ -209,8 +209,8 @@ def assertHeaderFile(path):
sys.exit(2)
def assertSourceFile(path):
- if path[-2] != '.' or (path[-1] != 'c' and path[-1] != 'S'):
- print("*** " + path + " does not end in .c or .S")
+ if path[-2:] != '.c' and path[-2:] != '.S' and path[-3:] != '.cc':
+ print("*** " + path + " does not end in .c, .cc or .S")
print("*** Move it to a header file list")
sys.exit(2)