Skip to content

Commit

Permalink
windows build and test scripts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-chumak committed Dec 19, 2023
1 parent c6e7a7a commit ecd9c63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
10 changes: 5 additions & 5 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ selfexec: ol
# require mingw-w64-i686-dev (+ gcc-mingw-w64-i686) or/and mingw-w64-x86-64-dev (+ gcc-mingw-w64-x86-64)
%.exe: MINGWCFLAGS += -std=gnu99 -fno-exceptions
%.exe: MINGWCFLAGS += -Wno-shift-count-overflow
%.exe: MINGWCFLAGS += -DHAVE_DLOPEN=1
%.exe: MINGWCFLAGS += -DHAS_SOCKES=1
%.exe: MINGWCFLAGS += $(CFLAGS_RELEASE)
%.exe: src/olvm.c extensions/ffi.c tmp/repl.c
$(CC) src/olvm.c tmp/repl.c -o $@ \
-DREPL=repl -DOLVM_FFI=1 \
-Iincludes -Iincludes/win32 extensions/ffi.c \
x86_64-w64-mingw32-gcc \
$^ -o $@ \
-DREPL=repl \
-DHAVE_DLOPEN=1 -DHAS_SOCKES=1 -DOLVM_FFI=1 \
-Iincludes/win32 -Iincludes \
$(MINGWCFLAGS) -lws2_32

# compiling the Ol language
Expand Down
17 changes: 9 additions & 8 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ HAS_MINGW64 ?= $(call which,x86_64-w64-mingw32-gcc)
# dpkg --add-architecture i386 && apt-get update
# apt install wine32
HAS_WINE ?= $(call which,wine)
WINE ?= wine cmd /c

# notifications
ok:="$(green) ok $(done)"
Expand Down Expand Up @@ -391,12 +392,12 @@ ifeq ($(HAS_64CDEFS),1)
$(call scmtestok,$(vm)r64,release-64)
endif
ifeq ($(HAS_MINGW32)$(HAS_WINE),11)
$(call scmtestok,$(vm)32d.exe,win-debug-32,wine,--strip-trailing-cr)
$(call scmtestok,$(vm)32r.exe,win-release-32,wine,--strip-trailing-cr)
$(call scmtestok,$(vm)32d.exe,win-debug-32,$(WINE),--strip-trailing-cr)
$(call scmtestok,$(vm)32r.exe,win-release-32,$(WINE),--strip-trailing-cr)
endif
ifeq ($(HAS_MINGW64)$(HAS_WINE),11)
$(call scmtestok,$(vm)64d.exe,win-debug-64,wine,--strip-trailing-cr)
$(call scmtestok,$(vm)64r.exe,win-release-64,wine,--strip-trailing-cr)
$(call scmtestok,$(vm)64d.exe,win-debug-64,$(WINE),--strip-trailing-cr)
$(call scmtestok,$(vm)64r.exe,win-release-64,$(WINE),--strip-trailing-cr)
endif
else # default case
$(call scmtestok,$(vm)d,debug)
Expand Down Expand Up @@ -427,12 +428,12 @@ ifeq ($(HAS_64CDEFS),1)
$(call bintestok,$(vm)r64,release-64)
endif
ifeq ($(HAS_MINGW32)$(HAS_WINE),11)
$(call bintestok,$(vm)32d.exe,win-debug-32,wine,--strip-trailing-cr)
$(call bintestok,$(vm)32r.exe,win-release-32,wine,--strip-trailing-cr)
$(call bintestok,$(vm)32d.exe,win-debug-32,$(WINE),--strip-trailing-cr)
$(call bintestok,$(vm)32r.exe,win-release-32,$(WINE),--strip-trailing-cr)
endif
ifeq ($(HAS_MINGW64)$(HAS_WINE),11)
$(call bintestok,$(vm)64d.exe,win-debug-64,wine,--strip-trailing-cr)
$(call bintestok,$(vm)64r.exe,win-release-64,wine,--strip-trailing-cr)
$(call bintestok,$(vm)64d.exe,win-debug-64,$(WINE),--strip-trailing-cr)
$(call bintestok,$(vm)64r.exe,win-release-64,$(WINE),--strip-trailing-cr)
endif
else # default case
$(call bintestok,$(vm)d,debug)
Expand Down

0 comments on commit ecd9c63

Please # to comment.