Skip to content

Commit

Permalink
fix: include embed-headers.c in win native build
Browse files Browse the repository at this point in the history
deactivate native win test
  • Loading branch information
jaromil committed Oct 1, 2024
1 parent 3a6196b commit 32aef09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ jobs:
make libtcc.a libtcc1.a
cd ..\..
make -f build/win-native.mk
- name: Run tests
run: |
.\cjit.exe test\hello.c
# - name: Run tests
# run: |
# .\cjit.exe test\hello.c

semantic-release:
name: 🤖 Semantic release
Expand Down
6 changes: 5 additions & 1 deletion build/win-native.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cflags := -O2 -fomit-frame-pointer -Isrc -Ilib/tinycc
cflags += -DLIBC_MINGW32

SOURCES := src/io.o src/file.o src/cflag.o \
src/cjit.o src/embed-libtcc1.o
src/cjit.o src/embed-libtcc1.o src/embed-headers.o

ldflags += -static-libgcc

Expand All @@ -38,3 +38,7 @@ cjit.exe: ${SOURCES}
src/embed-libtcc1.c:
$(info Embedding libtcc1: ${embed_libtcc1})
sh build/embed-libtcc1.sh ${embed_libtcc1}

src/embed-headers.c:
$(info Embedding tinycc headers)
bash build/embed-headers.sh

0 comments on commit 32aef09

Please sign in to comment.