From 2a3d1a1ba56fbc5db1fb5becbf03b51ec4893698 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 27 Dec 2022 15:16:58 -0500 Subject: [PATCH] import JIT settings to colvars library makefile --- lib/colvars/Makefile.common | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/colvars/Makefile.common b/lib/colvars/Makefile.common index 3db2dae495..2a47fc529d 100644 --- a/lib/colvars/Makefile.common +++ b/lib/colvars/Makefile.common @@ -63,9 +63,24 @@ COLVARS_SRCS = \ # Allow to selectively turn off Lepton ifeq ($(COLVARS_LEPTON),no) + LEPTON_INCFLAGS = + else -LEPTON_INCFLAGS = -I../lepton/include -DLEPTON + +# imported from ../lepton/Common.mk +ENABLE_JIT=0 +ifeq ($(shell uname -m),x86_64) +ENABLE_JIT=1 +endif +ifeq ($(shell uname -m),amd64) +ENABLE_JIT=1 +endif +LEPTON_INCFLAGS = -I../lepton/include -DLEPTON -DLEPTON_BUILDING_STATIC_LIBRARY=1 +ifeq ($(ENABLE_JIT),1) +LEPTON_INCLFLAGS += -I../lepton -DLEPTON_USE_JIT=1 -DASMJIT_BUILD_X86=1 -DASMJIT_STATIC=1 -DASMJIT_BUILD_RELEASE=1 +endif + endif COLVARS_OBJS = $(COLVARS_SRCS:.cpp=.o)