actually pass our compiler flags to jit
and supress all warnings for jit (idk how else to handle it lmao)
This commit is contained in:
1 parent
78a597543c
commit
4444d35985
2 files changed
+2
-5
No files matched your search
@@ -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,
|
||||
|
||||
+1
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user