Do not mess with java bindings CC_FLAGS

This commit is contained in:
Ramana Kumar 2022-11-29 21:19:03 +00:00
parent 070948d68f
commit de36196184
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ LIBRARY_FOLDER=src/main/resources/ethereum/ckzg4844/lib
FIELD_ELEMENTS_PER_BLOB ?= 4096
CC_FLAGS = -DFIELD_ELEMENTS_PER_BLOB=$(FIELD_ELEMENTS_PER_BLOB)
CC_FLAGS=
ifeq ($(OS),Windows_NT)
CLANG_EXECUTABLE=clang
@ -42,7 +42,7 @@ all: build test
build:
mkdir -p ${LIBRARY_FOLDER}/${OS_ARCH}
${CLANG_EXECUTABLE} ${CC_FLAGS} ${CLANG_FLAGS} -O -Wall ${addprefix -I,${INCLUDE_DIRS}} -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/${JNI_INCLUDE_FOLDER}" -o ${LIBRARY_FOLDER}/${OS_ARCH}/${LIBRARY_RESOURCE} c_kzg_4844_jni.c c_kzg_4844.o ../../lib/libblst.a
${CLANG_EXECUTABLE} ${CC_FLAGS} ${CLANG_FLAGS} -O -Wall ${addprefix -I,${INCLUDE_DIRS}} -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/${JNI_INCLUDE_FOLDER}" -DFIELD_ELEMENTS_PER_BLOB=${FIELD_ELEMENTS_PER_BLOB} -o ${LIBRARY_FOLDER}/${OS_ARCH}/${LIBRARY_RESOURCE} c_kzg_4844_jni.c c_kzg_4844.o ../../lib/libblst.a
test:
${GRADLE_COMMAND} clean test