Merge pull request #31 from dgcoffman/dgc/fix-setting-field-element-var

Correctly set FIELD_ELEMENTS_PER_BLOB for distributable build
This commit is contained in:
Ramana Kumar 2022-12-14 07:46:35 +00:00 committed by GitHub
commit f2c57eeef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -8,8 +8,10 @@
"CLANG_CXX_LIBRARY": "libc++", "CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "13.0" "MACOSX_DEPLOYMENT_TARGET": "13.0"
}, },
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS", "defines": [
"FIELD_ELEMENTS_PER_BLOB=<!(echo ${FIELD_ELEMENTS_PER_BLOB:-4096})"], "NAPI_DISABLE_CPP_EXCEPTIONS",
"FIELD_ELEMENTS_PER_BLOB=<!(echo ${FIELD_ELEMENTS_PER_BLOB:-4096})"
],
"sources": ["kzg.cxx"], "sources": ["kzg.cxx"],
"include_dirs": [ "include_dirs": [
"<(module_root_dir)/dist/deps/blst/bindings", "<(module_root_dir)/dist/deps/blst/bindings",
@ -38,6 +40,7 @@
"action": [ "action": [
"cc", "cc",
"-I<(module_root_dir)/dist/deps/blst/bindings", "-I<(module_root_dir)/dist/deps/blst/bindings",
"-DFIELD_ELEMENTS_PER_BLOB=<!(echo ${FIELD_ELEMENTS_PER_BLOB:-4096})",
"-O2", "-O2",
"-c", "-c",
"<(module_root_dir)/dist/deps/c-kzg/c_kzg_4844.c" "<(module_root_dir)/dist/deps/c-kzg/c_kzg_4844.c"

View File

@ -8,8 +8,10 @@
"CLANG_CXX_LIBRARY": "libc++", "CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "13.0" "MACOSX_DEPLOYMENT_TARGET": "13.0"
}, },
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS", "defines": [
"FIELD_ELEMENTS_PER_BLOB=<!(echo ${FIELD_ELEMENTS_PER_BLOB:-4096})"], "NAPI_DISABLE_CPP_EXCEPTIONS",
"FIELD_ELEMENTS_PER_BLOB=<!(echo ${FIELD_ELEMENTS_PER_BLOB:-4096})"
],
"sources": ["kzg.cxx"], "sources": ["kzg.cxx"],
"include_dirs": [ "include_dirs": [
"../../inc", "../../inc",

View File

@ -1,6 +1,6 @@
{ {
"name": "c-kzg", "name": "c-kzg",
"version": "1.0.8", "version": "1.0.9",
"description": "NodeJS bindings for C-KZG", "description": "NodeJS bindings for C-KZG",
"author": "Dan Coffman", "author": "Dan Coffman",
"license": "MIT", "license": "MIT",