update for mingw build within CI
This commit is contained in:
@@ -138,9 +138,9 @@ steps:
|
||||
export PDCURSES_TOP=../submodules/pdcurses
|
||||
export LUA_VERSION=5.4.4
|
||||
cp ../sys/windows/Makefile.mingw32* .
|
||||
mingw32-make -f Makefile.mingw32 LUA_VERSION=$LUA_VERSION clean
|
||||
mingw32-make -f Makefile.mingw32 LUA_VERSION=$LUA_VERSION depend
|
||||
mingw32-make -f Makefile.mingw32 LUA_VERSION=$LUA_VERSION
|
||||
mingw32-make -f Makefile.mingw32 CI_COMPILER=1 MSYSTEM=MINGW32 LUA_VERSION=$LUA_VERSION clean
|
||||
mingw32-make -f Makefile.mingw32 CI_COMPILER=1 MSYSTEM=MINGW32 LUA_VERSION=$LUA_VERSION depend
|
||||
mingw32-make -f Makefile.mingw32 CI_COMPILER=1 MSYSTEM=MINGW32 LUA_VERSION=$LUA_VERSION
|
||||
condition: eq( variables.toolchain, 'mingw' )
|
||||
workingDirectory: $(Agent.BuildDirectory)/$(netHackPath)/src
|
||||
displayName: 'MinGW Build'
|
||||
|
||||
@@ -200,9 +200,8 @@ USE_DLB = Y
|
||||
#==========================================
|
||||
|
||||
ifdef CI_COMPILER
|
||||
cc = i686-w64-mingw32-gcc.exe
|
||||
ld = i686-w64-mingw32-gcc.exe
|
||||
rc = windres --target=pe-i386
|
||||
cc = gcc -c
|
||||
ld = gcc
|
||||
# the mingw version on our CI is missing
|
||||
# winres.h. This will cause the Makefile.mingw32
|
||||
# to put a temporary copy into one of our folders
|
||||
@@ -211,13 +210,13 @@ MISSING_HEADER = Y
|
||||
else
|
||||
cc = gcc -c
|
||||
ld = gcc
|
||||
MISSING_HEADER = N
|
||||
endif
|
||||
ifeq "$(MSYSTEM)" "MINGW32"
|
||||
rc = windres --target=pe-i386
|
||||
else # MINGW64
|
||||
rc = windres --target=pe-x86-64
|
||||
endif
|
||||
MISSING_HEADER = N
|
||||
endif
|
||||
|
||||
#
|
||||
# Handle user settings
|
||||
|
||||
Reference in New Issue
Block a user