Files
llama.cpp/ggml/src
SaidSultaniandMax Krasnyansky 92d6c8a5ca fix(hexagon): make host build work with clang-cl on Windows ARM64 (#32011)
* fix(hexagon): make host build work with clang-cl on Windows ARM64

Two CMake fixes for building ggml-hexagon natively on Windows-on-ARM64
with x64-hosted clang-cl (validated on Snapdragon X Elite, discussion in
qualcomm/GenieX#1390):

- Some clang drivers (e.g. x64-hosted toolchains used on ARM64) don't
  predefine the arch macro, which makes winnt.h fail with "No Target
  Architecture". Define _M_ARM64/_ARM64_ explicitly for the host TUs.
- The Hexagon SDK's incs/stddef include (AEEStdDef.h and friends) poisons
  the MSVC header chain when it leaks onto dependent TUs' include paths
  via htp_iface's PUBLIC includes. Keep it PRIVATE to the interface stub
  and system-level for the backend's own TUs (which include <AEEStdErr.h>
  directly).

Originally validated 2026-08-26 as reported in the issue; applies
cleanly to 15759e0.

* hex-cmake: trim down excessive comments

---------

Co-authored-by: Max Krasnyansky <maxk@qti.qualcomm.com>
2026-11-12 13:52:56 -08:00
..
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00
2026-11-12 20:58:24 +02:00