@@ -23,7 +23,9 @@ Discussions = "https://discourse.llvm.org/"
2323requires = [
2424 " scikit-build-core==0.10.7" ,
2525 " typing_extensions==4.12.2" ,
26- " nanobind>=2.4, <3.0" ,
26+ # https://github.com/wjakob/nanobind/commit/dd350fe81931a1b362196cb415d188c36422766e#diff-8599263e788c107944d356ce118965942735cfbe16289ccf98ee5f8a33f0e808
27+ # error: static assertion failed due to requirement 'pyobj_name::total_count * sizeof(_object *) == 96'
28+ " nanobind>=2.4, <=2.9.2" ,
2729 " pybind11>=2.10.0, <=2.13.6" ,
2830]
2931build-backend = " scikit_build_core.build"
@@ -45,27 +47,15 @@ cmake.args = ["-C", "llvm_wasm_cache.cmake"]
4547CMAKE_BUILD_TYPE = { env = " CMAKE_BUILD_TYPE" , default = " Release" }
4648CMAKE_C_COMPILER_LAUNCHER = { env = " CMAKE_C_COMPILER_LAUNCHER" , default = " " }
4749CMAKE_CXX_COMPILER_LAUNCHER = { env = " CMAKE_CXX_COMPILER_LAUNCHER" , default = " " }
48- # https://github.com/emscripten-core/emscripten/issues/25911
49- # https://github.com/pyodide/pyodide/blob/7f2feb1a673b7b610cf17bfc8a48727687843cd3/docs/development/abi.md?plain=1#L40C34-L40C49
50- # Linking a shared libraries with `-sSIDE_MODULE=1` will pass `-whole-archive` to
51- # `wasm-ld` and so force inclusion of all object files and all symbols. Linking
52- # with `-sSIDE_MODULE=2` will only include symbols that are explicitly listed with
53- # `-sEXPORTED_FUNCTIONS=<export list>`. The name of each symbol in the list must
54- # be prefixed with an underscore.
55- # https://github.com/emscripten-core/emscripten/blob/04fda5c8e488985bd5825a11e21373316dd133e4/site/source/docs/getting_started/FAQ.rst?plain=1#L461-L463
56- # https://github.com/pyodide/pyodide/blob/7f2feb1a673b7b610cf17bfc8a48727687843cd3/docs/development/abi.md
57-
58- # CMAKE_C_FLAGS = "-sLINKABLE -Wl,-allow-multiple-definition"
59- # CMAKE_CXX_FLAGS = "-sLINKABLE -Wl,-allow-multiple-definition"
60- CMAKE_C_FLAGS = " -sLINKABLE"
61- CMAKE_CXX_FLAGS = " -sLINKABLE"
62- CMAKE_EXE_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sWASM_BIGINT"
50+ # CMAKE_C_FLAGS = "-sLINKABLE"
51+ # CMAKE_CXX_FLAGS = "-sLINKABLE"
52+ CMAKE_EXE_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sWASM_BIGINT "
6353CMAKE_SHARED_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sWASM_BIGINT"
6454CMAKE_MODULE_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sWASM_BIGINT"
55+ CMAKE_VERBOSE_MAKEFILE = " ON"
6556# De-duplicate libraries on link lines based on linker capabilities.
6657# minimum cmake version is 3.29
6758CMAKE_POLICY_DEFAULT_CMP0156 = " NEW"
68- CMAKE_VERBOSE_MAKEFILE = " ON"
6959
7060# so that NATIVE doesn't try to get built
7161LLVM_NATIVE_TOOL_DIR = { env = " LLVM_NATIVE_TOOL_DIR" , default = " " }
0 commit comments