mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-26 14:01:26 +00:00
add HAVE_VM_COMPILED variable so one can override it in Makefile.local
This commit is contained in:
parent
05e8ab9538
commit
b6228f1408
1 changed files with 9 additions and 7 deletions
|
@ -123,24 +123,26 @@ ifeq ($(PLATFORM),linux)
|
||||||
OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -falign-loops=2 \
|
OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -falign-loops=2 \
|
||||||
-falign-jumps=2 -falign-functions=2 -fstrength-reduce \
|
-falign-jumps=2 -falign-functions=2 -fstrength-reduce \
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
# comment out below line to enable the
|
|
||||||
# experimental x86_64 jit compiler! you need as
|
# experimental x86_64 jit compiler! you need as
|
||||||
BASE_CFLAGS += -DNO_VM_COMPILED
|
#HAVE_VM_COMPILED = true
|
||||||
else
|
else
|
||||||
ifeq ($(ARCH),i386)
|
ifeq ($(ARCH),i386)
|
||||||
OPTIMIZE = -O3 -march=i686 -fomit-frame-pointer -ffast-math \
|
OPTIMIZE = -O3 -march=i686 -fomit-frame-pointer -ffast-math \
|
||||||
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
|
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
|
||||||
-fno-strict-aliasing -fstrength-reduce
|
-fno-strict-aliasing -fstrength-reduce
|
||||||
|
HAVE_VM_COMPILED=true
|
||||||
else
|
else
|
||||||
ifeq ($(ARCH),ppc)
|
ifeq ($(ARCH),ppc)
|
||||||
ifeq ($(VM_PPC),)
|
ifneq ($(VM_PPC),)
|
||||||
BASE_CFLAGS += -DNO_VM_COMPILED
|
HAVE_VM_COMPILED=true
|
||||||
endif
|
endif
|
||||||
else
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(HAVE_VM_COMPILED),true)
|
||||||
BASE_CFLAGS += -DNO_VM_COMPILED
|
BASE_CFLAGS += -DNO_VM_COMPILED
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0
|
DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue