Extend FreeCAD WebAssembly runtime support
Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled

This commit is contained in:
2026-09-08 15:05:38 +08:00
parent 6f99794003
commit 77925a996d
23 changed files with 6099 additions and 108 deletions

View File

@@ -367,6 +367,11 @@ endif(FREECAD_USE_PCH)
target_sources(FreeCADApp PRIVATE ${FreeCADApp_SRCS})
target_link_libraries(FreeCADApp ${FreeCADApp_LIBS})
if(EMSCRIPTEN)
# PropertyListsT uses catch-and-fallback when Python assigns an object list.
target_compile_options(FreeCADApp PRIVATE "-fexceptions")
endif()
if (MSVC)
target_compile_definitions(FreeCADApp PRIVATE WIN32_LEAN_AND_MEAN)
target_compile_options(FreeCADApp PRIVATE /wd4251 /wd4273 /wd4275)