2 Commits

Author SHA1 Message Date
cheezwiz7899 3fe8693844 fix stupid msys2 and windows cmd path handling 2026-04-18 14:40:08 +10:00
cheezwiz7899 f5920920c9 llvm-mingw for windows on linux cross-compile and MSYS2 compatibility
New files:
- build-clangtron-windows.sh - a build script for llvm-mingw
- build-clangtron-windows.bat - a helper for finding and opening a clang msys2 envitronment prompt on windows
- /docs/BUILDING-CLANGTRON-WINDOWS.md - user guide for the new build script

Changes:
- vfs_real.cpp: extend _stat64 guard to __MINGW32__ so _wstat64 gets the  right struct type under llvm-mingw and MSYS2
- src/citron/CMakeLists.txt: restrict -fuse-ld=bfd to GNU compiler only;
  Clang does not accept this flag
- CMakeModules/PGO.cmake: add CITRON_PGO_FLAGS_MANAGED_BY_SCRIPT guard so
  external build scripts can supply PGO flags without conflicting with
  CMake's own injection
- CMakeModules/CopyMinGWDeps.cmake: fall back to Qt6_DIR/../../../plugins
  for plugin deployment when the MSYS2 share path doesn't exist (fixes Qt
  plugin and TLS deployment on Linux cross-compile hosts)
- src/common/logging.cpp, src/hid_core/resources/npad/npad.cpp: add   [[clang::no_profile_instrument_function]] on FmtLogMessageImpl and
  NPad::OnUpdate to suppress ~87M discarded CS-PGO counter hits
- vcpkg.json: add opus and openssl as top-level Windows dependencies
2026-04-18 13:50:13 +10:00