mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 02:42:09 +08:00
builder.py: Accept C++ source files
This commit is contained in:
parent
3017f66a36
commit
44c5fe27d6
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user