aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorRawan Khalid <145160003+Rawan10101@users.noreply.github.com>2026-03-11 21:05:46 +0200
committerGitHub <noreply@github.com>2026-03-11 19:05:46 +0000
commit8aacce90b4b6bc997f4840c84809876ac3d6251d (patch)
tree9f823f3aafee644d021bb009ef39c05c7117f63b /runtime/syntax/python.vim
parent689a149b089095a29ef2fcfbf31137a230f28d07 (diff)
downloadrneovim-8aacce90b4b6bc997f4840c84809876ac3d6251d.tar.gz
rneovim-8aacce90b4b6bc997f4840c84809876ac3d6251d.tar.bz2
rneovim-8aacce90b4b6bc997f4840c84809876ac3d6251d.zip
fix(cmake): linker flags, doc generation for cross-compilation #38215
Problem: Cross-compilation issues encountered when building Neovim for WASM. When cross-compiling, three issues occur: 1. `-Wl,--no-undefined` — not supported by `wasm-ld` 2. `-lutil` — not available in the Emscripten sysroot 3. Doc generation fails because CMake tries to execute `$<TARGET_FILE:nvim_bin>` on the host machine, which fails because the binary is not native to the host. It fails with `/bin/sh: nvim.js: Permission denied` Solution: The fix includes skipping `-Wl,--no-undefined` and `-lutil` with `NOT CMAKE_CROSSCOMPILING` and adding `NVIM_HOST_PRG` variable to `runtime/CMakeLists.txt` so when cross-compiling, it uses a host native nvim binary for doc generation instead of using the cross-compiled target.
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions