diff --git a/libs/bluajit/src/Makefile b/libs/bluajit/src/Makefile index 51a449fc6..a042b93df 100644 --- a/libs/bluajit/src/Makefile +++ b/libs/bluajit/src/Makefile @@ -86,7 +86,7 @@ BUILDMODE= mixed ############################################################################## # Enable/disable these features as needed, but make sure you force a full # recompile with "make clean", followed by "make". -XCFLAGS= +XCFLAGS= -w # # Permanently disable the FFI extension to reduce the size of the LuaJIT # executable. But please consider that the FFI library is compiled-in, diff --git a/src/Makefile b/src/Makefile index 44059e602..57fe4993b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -282,9 +282,6 @@ opts+=$(foreach v,$(passthru_opts),$(if $($(v)),-D$(v))) CXXFLAGS+=-std=c++17 # force c17 for c++ since most vpss run older ubuntu versions with old compilers -ifndef NOBLUAJIT -jitopts+=$(CFLAGS) # dont pass any of our WFLAGS to jit unless you want to have a fun time (: -endif opts+=$(WFLAGS) $(CFLAGS) cxxopts:=$(opts) $(CXXFLAGS) opts+=$(CWFLAGS) # warning flags that shouldnt be passed to c++ compiler @@ -372,7 +369,7 @@ $(dbg) : $(objects) $(lualib) | $$(@D)/ ifndef NOBLUAJIT $(lualib): - @$(MAKE) -C ../libs/bluajit $(MAKECMDGOALS) CCOPT="$(jitopts)" + @$(MAKE) -C ../libs/bluajit $(MAKECMDGOALS) CCOPT="$(opts)" endif # disassembly of executable