From fe874db0b3ee850510c0946f0c1b3c7c3ec842ef Mon Sep 17 00:00:00 2001 From: Bart House Date: Fri, 11 Dec 2020 18:45:44 -0800 Subject: [PATCH] Fix Windows build break caused by bump to lua 5.4.2. Modified Windows build to use submodules/lua for lua source. --- .gitmodules | 3 +++ azure-pipelines.yml | 2 +- submodules/lua | 1 + win/win32/vs/NetHackW.vcxproj | 1 + win/win32/vs/dirs.props | 2 +- win/win32/vs/makedefs.vcxproj | 6 +++--- 6 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .gitmodules create mode 160000 submodules/lua diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..c08764d7e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "submodules/lua"] + path = submodules/lua + url = https://github.com/lua/lua.git diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 30324cf9b..2c6eda1c5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,7 +20,7 @@ resources: steps: - checkout: git://NetHack/NetHack@NetHack-3.7 # $(Agent.BuildDirectory)\s\NetHack -- checkout: luarepo # $(Agent.BuildDirectory)\s\lua + submodules: true - task: DownloadSecureFile@1 name: storeKey diff --git a/submodules/lua b/submodules/lua new file mode 160000 index 000000000..e2ea3b31c --- /dev/null +++ b/submodules/lua @@ -0,0 +1 @@ +Subproject commit e2ea3b31c94bb3e1da27c233661cb2a16699c685 diff --git a/win/win32/vs/NetHackW.vcxproj b/win/win32/vs/NetHackW.vcxproj index 61026d3a0..e9b5d7dd5 100644 --- a/win/win32/vs/NetHackW.vcxproj +++ b/win/win32/vs/NetHackW.vcxproj @@ -53,6 +53,7 @@ true true + true false diff --git a/win/win32/vs/dirs.props b/win/win32/vs/dirs.props index 05b6543ac..ed8a7554f 100644 --- a/win/win32/vs/dirs.props +++ b/win/win32/vs/dirs.props @@ -10,7 +10,7 @@ $(RootDir)dat\ $(RootDir)doc\ $(RootDir)include\ - $(RootDir)lib\lua-$(LUA_VERSION)\src\ + $(RootDir)submodules\lua\ $(RootDir)src\ $(RootDir)sys\ $(RootDir)util\ diff --git a/win/win32/vs/makedefs.vcxproj b/win/win32/vs/makedefs.vcxproj index 190952a6a..f82bb2c9a 100644 --- a/win/win32/vs/makedefs.vcxproj +++ b/win/win32/vs/makedefs.vcxproj @@ -55,10 +55,10 @@ Outputs="$(IncDir)\nhlua.h"> - + - - + +