mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
linux+amd64 compat
This commit is contained in:
parent
007d41b5af
commit
c6e332a0f5
@ -45,6 +45,7 @@ ifeq "$(AMD64)" "true"
|
||||
else
|
||||
BINARY = $(NAME)_i386.so
|
||||
OBJECTS += JIT/amxexecn.o JIT/amxjitsn.o JIT/natives-x86.o
|
||||
OBJECTS += JIT/helpers-x86.o
|
||||
CFLAGS += -DPAWN_CELL_SIZE=32 -DJIT -DASM32
|
||||
OPT_FLAGS += -march=i586
|
||||
endif
|
||||
|
@ -99,12 +99,16 @@ void _Setup_Optimizer_Stage2(AMX *amx, cell *oplist, cell *cip)
|
||||
}
|
||||
if (g_opt_level & 2)
|
||||
{
|
||||
#if !defined AMD64
|
||||
if (amxx_CpuSupport())
|
||||
{
|
||||
#endif
|
||||
FIND_NATIVE("floatcmp", N_Float_Cmp);
|
||||
#if !defined AMD64
|
||||
} else {
|
||||
g_opt_level &= ~(2);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
//we don't do these yet because of radix stuff >:\
|
||||
//FIND_NATIVE("floatsin", N_Float_Sin);
|
||||
|
Loading…
Reference in New Issue
Block a user