Files
bimg/3rdparty/nvtt
ShuangLiu1992 4e00d20f52 nvtt: posh.h — switch EMSCRIPTEN macro to __EMSCRIPTEN__ (#126)
emsdk >= 5.0 no longer predefines the legacy `EMSCRIPTEN` macro,
only `__EMSCRIPTEN__` (see emscripten-core/emscripten#21899). Switch
posh's OS+CPU detection to the modern spelling so vendored nvtt builds
under current emsdk.

Without this, posh falls through to "unknown OS", defsgnuclinux.h is
never included, `#define restrict __restrict__` never runs, and
nvcore/utils.h ships bare `restrict` into clang which rejects it
("expected ')'"). POSH_CPU detection then also fails with "POSH cannot
determine target CPU".

Suggested by @bkaradzic — drop the legacy spelling rather than add
`__EMSCRIPTEN__` alongside it.
2026-05-28 17:05:22 +00:00
..
2025-03-03 13:24:22 -08:00
2026-03-03 22:03:46 +00:00
2026-05-03 18:28:20 +00:00