[all-commits] [llvm/llvm-project] 1c60b7: [Support] [Windows] Conditionally compile the SetT...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Thu Jul 31 11:54:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c60b7da4f7af388b12f4f9b1d46bab0b65c5155
      https://github.com/llvm/llvm-project/commit/1c60b7da4f7af388b12f4f9b1d46bab0b65c5155
  Author: Martin Storsjö <martin at martin.st>
  Date:   2025-07-31 (Thu, 31 Jul 2025)

  Changed paths:
    M llvm/lib/Support/Windows/Threading.inc

  Log Message:
  -----------
  [Support] [Windows] Conditionally compile the SetThreadInformation calls (#151388)

The declarations for this API are missing in older mingw-w64 headers
(versions before v12). This API is also hidden if building with MS
WinSDK if targeting versions before Windows 10.

Check whether THREAD_POWER_THROTTLING_CURRENT_VERSION is defined before
using this API; this constant is a #define in both WinSDK and mingw-w64.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list