File: BuildWasmtime.cmake

package info (click to toggle)
neovim 0.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 64,140 kB
  • sloc: ansic: 263,427; python: 1,472; lisp: 1,237; sh: 1,138; makefile: 382; xml: 84; ruby: 6
file content (12 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
# wasmtime is a chungus -- optimize _extra hard_ to keep nvim svelte
get_externalproject_options(wasmtime ${DEPS_IGNORE_SHA})
ExternalProject_Add(wasmtime
  DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/wasmtime
  SOURCE_SUBDIR crates/c-api
  CMAKE_ARGS ${DEPS_CMAKE_ARGS}
    -D WASMTIME_FASTEST_RUNTIME=ON       # build with full LTO
    -D WASMTIME_DISABLE_ALL_FEATURES=ON  # don't need all that crap...
    -D WASMTIME_FEATURE_CRANELIFT=ON     # ...except this one (compiles wasm to platform code)
    -D WASMTIME_FEATURE_GC_DRC=ON        # ...and this one (needed by ts to create engines)
  USES_TERMINAL_BUILD TRUE
  ${EXTERNALPROJECT_OPTIONS})