[rtems-libbsd commit] builder.py: Accept C++ source files

Sebastian Huber sebh at rtems.org
Mon Feb 18 09:11:47 UTC 2019


Module:    rtems-libbsd
Branch:    5-freebsd-12
Commit:    44c5fe27d670b61ac1d1203401ce37f0f5924a8e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=44c5fe27d670b61ac1d1203401ce37f0f5924a8e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Feb 18 10:01:09 2019 +0100

builder.py: Accept C++ source files

---

 builder.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/builder.py b/builder.py
index 7f4e717..1679b6c 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)
 



More information about the vc mailing list