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

Commit 4c7c96d

Browse files
committed
Move system includes to beginning of file in packed cc-runtime
1 parent 3c52869 commit 4c7c96d

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
@@ -17,7 +17,10 @@ jobs:
1717
run: |
1818
set -e
1919
cat assembly.h int_endianness.h int_types.h int_lib.h int_util.h *.inc *.c > /tmp/cc-runtime.c
20-
sed -i '/#include "/d' /tmp/cc-runtime.c
20+
grep '#include <' /tmp/cc-runtime.c > /tmp/saved-includes
21+
sed -i '/#include/d' /tmp/cc-runtime.c
22+
cat /tmp/saved-includes /tmp/cc-runtime.c > /tmp/cc-runtime.c.tmp
23+
mv /tmp/cc-runtime.c.tmp /tmp/cc-runtime.c
2124
2225
- name: Push packed cc-runtime
2326
run: |

0 commit comments

Comments
 (0)