Update single, make sure warnings are not there.

This commit is contained in:
ThePhD 2019-03-23 21:50:02 -04:00
parent 4aac17c602
commit 52ec50010b
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
9 changed files with 86 additions and 41 deletions

View File

@ -126,7 +126,7 @@ init:
- set parallelism= - set parallelism=
- set logger= - set logger=
- set build_compiler= - set build_compiler=
- set lua_build_type=OFF - set lua_build_type=ON
- set vcvars_script="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 - set vcvars_script="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- if "%PLATFORM%"=="x64" (set arch= Win64) - if "%PLATFORM%"=="x64" (set arch= Win64)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set CMAKE_GENERATOR=Visual Studio 15 2017%arch%&&set parallelism=/maxcpucount&&set logger=/verbosity:quiet /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"&&set vcvars_script="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat") - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set CMAKE_GENERATOR=Visual Studio 15 2017%arch%&&set parallelism=/maxcpucount&&set logger=/verbosity:quiet /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"&&set vcvars_script="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")

View File

@ -165,11 +165,40 @@ set(LUA_JIT_EXE_FILE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${LUA_JIT_EXE_FILENAME}"
if (MSVC) if (MSVC)
# Visual C++ is predicated off running msvcbuild.bat # Visual C++ is predicated off running msvcbuild.bat
# which requires a Visual Studio Command Prompt # which requires a Visual Studio Command Prompt
if (BUILD_LUA_AS_DLL) # make sure to find the right one
set(LUA_JIT_MAKE_COMMAND cd src && msvcbuild.bat) find_file(VCVARS_ALL_BAT NAMES vcvarsall.bat
else() HINTS "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build"
set(LUA_JIT_MAKE_COMMAND cd src && msvcbuild.bat static) "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary"
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC"
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Auxiliary/Build"
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Auxiliary"
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC"
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary/Build"
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary"
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC"
"C:/Program Files/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build"
"C:/Program Files/Microsoft Visual Studio/2017/Community/VC/Auxiliary"
"C:/Program Files/Microsoft Visual Studio/2017/Community/VC"
"C:/Program Files/Microsoft Visual Studio/2017/Professional/VC/Auxiliary/Build"
"C:/Program Files/Microsoft Visual Studio/2017/Professional/VC/Auxiliary"
"C:/Program Files/Microsoft Visual Studio/2017/Professional/VC"
"C:/Program Files/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary/Build"
"C:/Program Files/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary"
"C:/Program Files/Microsoft Visual Studio/2017/Enterprise/VC")
if (VCVARS_ALL_BAT MATCHES "VCVARS_ALL_BAT-NOTFOUND")
MESSAGE(FATAL_ERROR "Cannot find 'vcvarsall.bat' file or similar needed to build LuaJIT ${LUA_VERSION} on Windows")
endif() endif()
if (CMAKE_SIZEOF_VOID_P LESS_EQUAL 4)
set(LUA_JIT_MAKE_COMMAND "${VCVARS_ALL_BAT}" x86)
else()
set(LUA_JIT_MAKE_COMMAND "${VCVARS_ALL_BAT}" x64)
endif()
set(LUA_JIT_MAKE_COMMAND ${LUA_JIT_MAKE_COMMAND} && cd src && msvcbuild.bat)
if (NOT BUILD_LUA_AS_DLL)
set(LUA_JIT_MAKE_COMMAND ${LUA_JIT_MAKE_COMMAND} static)
endif()
set(LUA_JIT_PREBUILT_LIB "lua51.lib") set(LUA_JIT_PREBUILT_LIB "lua51.lib")
set(LUA_JIT_PREBUILT_IMP_LIB "lua51.lib") set(LUA_JIT_PREBUILT_IMP_LIB "lua51.lib")
set(LUA_JIT_PREBUILT_DLL "lua51.dll") set(LUA_JIT_PREBUILT_DLL "lua51.dll")

View File

@ -413,7 +413,7 @@ COMPAT53_API void luaL_requiref(lua_State *L, const char *modname,
#if defined(COMPAT53_INCLUDE_SOURCE) && COMPAT53_INCLUDE_SOURCE == 1 #if defined(COMPAT53_INCLUDE_SOURCE) && COMPAT53_INCLUDE_SOURCE == 1
# include "compat-5.3.c" # include "compat-5.3.c.h"
#endif #endif

View File

@ -37,6 +37,16 @@
#define SOL_EXCEPTIONS_SAFE_PROPAGATION 1 #define SOL_EXCEPTIONS_SAFE_PROPAGATION 1
#endif // Exceptions can be propagated safely using C++-compiled Lua #endif // Exceptions can be propagated safely using C++-compiled Lua
#else #else
#if defined(SOL_NO_LUA_HPP) && SOL_NO_LUA_HPP
extern "C" {
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#if defined(LUAJIT_VERSION) && LUAJIT_VERSION
#include <luajit.h>
#endif
}
#else
#if defined(__has_include) #if defined(__has_include)
#if __has_include(<lua.hpp>) #if __has_include(<lua.hpp>)
#include <lua.hpp> #include <lua.hpp>
@ -45,7 +55,7 @@
#include <lua.h> #include <lua.h>
#include <lauxlib.h> #include <lauxlib.h>
#include <lualib.h> #include <lualib.h>
#if defined(SOL_LUAJIT) && SOL_LUAJIT #if defined(LUAJIT_VERSION) && LUAJIT_VERSION
#include <luajit.h> #include <luajit.h>
#endif #endif
} }
@ -53,6 +63,7 @@
#else #else
#include <lua.hpp> #include <lua.hpp>
#endif // check for lua.hpp safely for Lua 5.1 derps #endif // check for lua.hpp safely for Lua 5.1 derps
#endif // Manual - have lua.hpp or not
#endif // C++ Mangling for Lua vs. Not #endif // C++ Mangling for Lua vs. Not
#ifdef LUAJIT_VERSION #ifdef LUAJIT_VERSION

View File

@ -66,7 +66,7 @@
#if defined(__GNUC__) #if defined(__GNUC__)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#elif defined _MSC_VER #elif defined _MSC_VER
#pragma warning(push) #pragma warning(pop)
#endif // g++ #endif // g++
#if defined(SOL_INSIDE_UNREAL) #if defined(SOL_INSIDE_UNREAL)

View File

@ -90,7 +90,6 @@ namespace sol {
#if SOL_LUA_VERSION < 502 #if SOL_LUA_VERSION < 502
// Use lua_getfenv // Use lua_getfenv
lua_getfenv(L, index); lua_getfenv(L, index);
return 1;
#else #else
// Use upvalues as explained in Lua 5.2 and beyond's manual // Use upvalues as explained in Lua 5.2 and beyond's manual
if (lua_getupvalue(L, index, 1) == nullptr) { if (lua_getupvalue(L, index, 1) == nullptr) {

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script. // This file was generated with a script.
// Generated 2019-03-23 18:56:05.873126 UTC // Generated 2019-03-24 01:49:03.673540 UTC
// This header was generated with sol v3.0.1-beta (revision 9a0a27a) // This header was generated with sol v3.0.0-beta (revision 4aac17c)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script. // This file was generated with a script.
// Generated 2019-03-23 18:56:05.596914 UTC // Generated 2019-03-24 01:49:03.378490 UTC
// This header was generated with sol v3.0.1-beta (revision 9a0a27a) // This header was generated with sol v3.0.0-beta (revision 4aac17c)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP #ifndef SOL_SINGLE_INCLUDE_HPP
@ -2072,17 +2072,24 @@ namespace sol {
#define SOL_EXCEPTIONS_SAFE_PROPAGATION 1 #define SOL_EXCEPTIONS_SAFE_PROPAGATION 1
#endif // Exceptions can be propagated safely using C++-compiled Lua #endif // Exceptions can be propagated safely using C++-compiled Lua
#else #else
#if defined(SOL_NO_LUA_HPP) && SOL_NO_LUA_HPP
extern "C" {
#if defined(LUAJIT_VERSION) && LUAJIT_VERSION
#endif
}
#else
#if defined(__has_include) #if defined(__has_include)
#if __has_include(<lua.hpp>) #if __has_include(<lua.hpp>)
#include <lua.hpp> #include <lua.hpp>
#else #else
extern "C" { extern "C" {
#if defined(SOL_LUAJIT) && SOL_LUAJIT #if defined(LUAJIT_VERSION) && LUAJIT_VERSION
#endif #endif
} }
#endif // lua.hpp exists or does not #endif // lua.hpp exists or does not
#else #else
#endif // check for lua.hpp safely for Lua 5.1 derps #endif // check for lua.hpp safely for Lua 5.1 derps
#endif // Manual - have lua.hpp or not
#endif // C++ Mangling for Lua vs. Not #endif // C++ Mangling for Lua vs. Not
#ifdef LUAJIT_VERSION #ifdef LUAJIT_VERSION
@ -2528,7 +2535,7 @@ COMPAT53_API void luaL_requiref(lua_State *L, const char *modname,
#endif #endif
#if defined(COMPAT53_INCLUDE_SOURCE) && COMPAT53_INCLUDE_SOURCE == 1 #if defined(COMPAT53_INCLUDE_SOURCE) && COMPAT53_INCLUDE_SOURCE == 1
// beginning of sol/compatibility/compat-5.3.c // beginning of sol/compatibility/compat-5.3.c.h
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
@ -3364,7 +3371,7 @@ COMPAT53_API void luaL_requiref(lua_State *L, const char *modname,
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*********************************************************************/ *********************************************************************/
// end of sol/compatibility/compat-5.3.c // end of sol/compatibility/compat-5.3.c.h
#endif #endif
@ -12673,7 +12680,6 @@ namespace sol {
#if SOL_LUA_VERSION < 502 #if SOL_LUA_VERSION < 502
// Use lua_getfenv // Use lua_getfenv
lua_getfenv(L, index); lua_getfenv(L, index);
return 1;
#else #else
// Use upvalues as explained in Lua 5.2 and beyond's manual // Use upvalues as explained in Lua 5.2 and beyond's manual
if (lua_getupvalue(L, index, 1) == nullptr) { if (lua_getupvalue(L, index, 1) == nullptr) {
@ -24964,7 +24970,7 @@ namespace sol {
#if defined(__GNUC__) #if defined(__GNUC__)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#elif defined _MSC_VER #elif defined _MSC_VER
#pragma warning(push) #pragma warning(pop)
#endif // g++ #endif // g++
#if defined(SOL_INSIDE_UNREAL) #if defined(SOL_INSIDE_UNREAL)