diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-02-18 10:01:09 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-02-18 10:01:09 +0100 |
commit | 504c1ab2c3feea086ca522675dfda107abf8fd18 (patch) | |
tree | b5ac6e5ffb02c25f35a9190dac13126d3c5ec463 /builder.py | |
parent | Remove <linux/rbtree.h> (diff) | |
download | rtems-libbsd-504c1ab2c3feea086ca522675dfda107abf8fd18.tar.bz2 |
builder.py: Accept C++ source files
Diffstat (limited to '')
-rwxr-xr-x | builder.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |