Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit a4baa8c

Browse files
committed
Statically replace *.inc includes with contents in packed cc-runtime
1 parent 416e071 commit a4baa8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pack.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ jobs:
1616
- name: Pack cc-runtime
1717
run: |
1818
set -e
19-
cat assembly.h int_endianness.h int_types.h int_lib.h int_util.h *.inc *.c > /tmp/cc-runtime.c
19+
cat assembly.h int_endianness.h int_types.h int_lib.h int_util.h *.c > /tmp/cc-runtime.c
20+
for f in *.inc; do
21+
sed -i "/#include \"$f\"/{r $f;d}" /tmp/cc-runtime.c
22+
done
2023
grep '#include <' /tmp/cc-runtime.c > /tmp/saved-includes
2124
sed -i '/#include/d' /tmp/cc-runtime.c
2225
cat /tmp/saved-includes /tmp/cc-runtime.c > /tmp/cc-runtime.c.tmp

0 commit comments

Comments
 (0)