# Pinned Open CASCADE Technology (OCCT) source and build options for occt.wasm. # Unmodified upstream; see NOTICE.md in this folder. OCCT_TAG=V7_9_3 OCCT_COMMIT=a016080bf6738d6aeae020badee4e888ad1540a5 OCCT_URL=https://github.com/Open-Cascade-SAS/OCCT.git # Toolkits we ask for; OCCT's CMake adds their dependencies. OCCT_TOOLKITS="TKPrim TKBO TKBool TKFillet TKOffset TKFeat TKMesh TKShHealing TKDESTEP TKXCAF" # Emscripten release the shipped modules were built with. Both modules share its C++ runtime ABI, # so a replacement occt.wasm must be built with the same release. EMSCRIPTEN_VERSION=7.0.1 # Code-generation flags every object in both modules is compiled with (part of the interface): # -fPIC relocatable code for run-time linking # -fwasm-exceptions + legacy encoding native wasm exceptions (OCCT throws), Node 18+ / all browsers # -UOCC_CONVERT_SIGNALS no setjmp/longjmp signal handlers (wasm has no signals) # -Os size over speed OCCT_CFLAGS="-Os -fPIC -fwasm-exceptions -sWASM_LEGACY_EXCEPTIONS=1 -UOCC_CONVERT_SIGNALS"