(zilch lang ninja): consider .hpp to be headers

Change-Id: I6a6a6964feb764a70916d87bc8a4029b4ae92e80
This commit is contained in:
puck 2025-07-26 15:42:17 +00:00
parent 42ea5fd576
commit c1c606ee0b
2 changed files with 2 additions and 1 deletions

View file

@ -329,6 +329,7 @@
(define (can-safely-elide-header path) (define (can-safely-elide-header path)
(or (or
(string-suffix? ".hh" path) (string-suffix? ".hh" path)
(string-suffix? ".hpp" path)
(string-suffix? ".h" path))) (string-suffix? ".h" path)))
;; process a ninja file and corresponding vfs, and return two values: ;; process a ninja file and corresponding vfs, and return two values:

View file

@ -278,7 +278,7 @@
"zilchPlace() {\n" "zilchPlace() {\n"
"cd $NIX_BUILD_TOP; cp -rf --no-preserve=ownership " #$realised-store " bdir\n" "cd $NIX_BUILD_TOP; cp -rf --no-preserve=ownership " #$realised-store " bdir\n"
"chmod ugo+rw -R bdir\n" "chmod ugo+rw -R bdir\n"
"(cd " #$realised-store "/src; find . -type f '(' -name '*.h' -o -name '*.hh' -o -name '*.so' ')') | while read f; do zilchMakeFile \"../src/$f\"; done\n" "(cd " #$realised-store "/src; find . -type f '(' -name '*.h' -o -name '*.hh' -o -name '*.hpp' -o -name '*.so' ')') | while read f; do zilchMakeFile \"../src/$f\"; done\n"
make-all-placeholder-files make-all-placeholder-files
"cd bdir/build\n" "cd bdir/build\n"
"}\n" "}\n"