[all-commits] [llvm/llvm-project] 70321b: [Support] Support runtime override for LLVM_WINDOW...

Junji Watanabe via All-commits all-commits at lists.llvm.org
Tue May 26 06:01:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70321b9c3b2674d7613193e54dec5abf6b831bf7
      https://github.com/llvm/llvm-project/commit/70321b9c3b2674d7613193e54dec5abf6b831bf7
  Author: Junji Watanabe <jwata at google.com>
  Date:   2026-05-26 (Tue, 26 May 2026)

  Changed paths:
    M llvm/lib/Support/Path.cpp
    M llvm/unittests/Support/CommandLineTest.cpp
    M llvm/unittests/Support/Path.cpp

  Log Message:
  -----------
  [Support] Support runtime override for LLVM_WINDOWS_PREFER_FORWARD_SLASH (#199210)

Allow overriding the compile-time LLVM_WINDOWS_PREFER_FORWARD_SLASH
setting at runtime using an environment variable of the same name.

This enables testing both path separator behaviors (forward slash vs.
backslash on Windows) using a single build, which is useful for
CI/Buildbots.

The environment variable is checked once and cached in a static variable
for performance.

Also updated relevant tests in SupportTests (Path.cpp and
CommandLineTest.cpp) to dynamically detect the preferred separator style
at runtime instead of relying on the compile-time macro, making them
compatible with the override.



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