Skip to content

Commit

Permalink
fix: add win32ports headers
Browse files Browse the repository at this point in the history
also remove overlapping tinycc/mingw32 headers shipped in tinycc/win32
  • Loading branch information
jaromil committed Dec 17, 2024
1 parent 63c741f commit 9bcfe6f
Show file tree
Hide file tree
Showing 10 changed files with 1,708 additions and 220 deletions.
4 changes: 3 additions & 1 deletion build/win-native.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ SOURCES += src/win-compat.o \
src/embed_libtcc1.a.o \
src/embed_include.o \
src/embed_contrib_headers.o \
src/embed_tinycc_win32.o
src/embed_tinycc_win32.o \
src/embed_win32ports.o

all: embed cjit.exe

Expand All @@ -35,6 +36,7 @@ embed: lib/tinycc/libtcc1.a
bash build/embed-path.sh lib/tinycc/include
bash build/embed-path.sh lib/tinycc/win32/include tinycc_win32
bash build/embed-path.sh lib/contrib_headers
bash build/embed-path.sh lib/win32ports
@echo >> src/embedded.c
@echo "return(true);" >> src/embedded.c
@echo "}" >> src/embedded.c
Expand Down
6 changes: 5 additions & 1 deletion build/win-wsl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ include build/init.mk

cc := x86_64-w64-mingw32-gcc
ar := x86_64-w64-mingw32-ar

cflags := -Og -ggdb ${cflags_includes}
cflags += -DCJIT_BUILD_WIN

ldadd += -lrpcrt4 -lshlwapi
Expand All @@ -20,7 +22,8 @@ SOURCES += src/win-compat.o \
src/embed_libtcc1.a.o \
src/embed_include.o \
src/embed_contrib_headers.o \
src/embed_tinycc_win32.o
src/embed_tinycc_win32.o \
src/embed_win32ports.o

all: deps embed cjit.exe

Expand All @@ -31,6 +34,7 @@ embed: lib/tinycc/libtcc1.a
bash build/embed-path.sh lib/tinycc/include
bash build/embed-path.sh lib/tinycc/win32/include tinycc_win32
bash build/embed-path.sh lib/contrib_headers
bash build/embed-path.sh lib/win32ports
@echo "\nreturn(true);\n}\n" >> src/embedded.c
@echo "\n#endif\n" >> src/embedded.h

Expand Down
135 changes: 0 additions & 135 deletions lib/tinycc/win32/include/dirent.h

This file was deleted.

69 changes: 0 additions & 69 deletions lib/tinycc/win32/include/sys/time.h

This file was deleted.

14 changes: 0 additions & 14 deletions lib/tinycc/win32/include/sys/unistd.h

This file was deleted.

Loading

0 comments on commit 9bcfe6f

Please sign in to comment.