Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
env.pop("INCLUDE", None)
  • Loading branch information
chris-eibl committed Apr 3, 2026
commit 3c001368b0c1d853fc47c2b4f17f887c121a93c7
13 changes: 5 additions & 8 deletions Tools/jit/_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,12 @@ async def _run(tool: str, args: typing.Iterable[str], echo: bool = False) -> str
print(shlex.join(command))

if os.name == "nt":
# When building with /p:PlatformToolset=ClangCL, the VS build
# system puts that clang's include path into INCLUDE. The JIT's
# clang may be a different version, and mismatched headers cause
# build errors. See https://github.com/python/cpython/issues/146210.
env = os.environ.copy()
Comment thread
chris-eibl marked this conversation as resolved.
try:
# When building with /p:PlatformToolset=ClangCL, the VS build
# system puts that clang's include path into INCLUDE. The JIT's
# clang may be a different version, and mismatched headers cause
# build errors. See https://github.com/python/cpython/issues/146210
del env["INCLUDE"]
except KeyError:
pass
env.pop("INCLUDE", None)
else:
env = None
try:
Expand Down
Loading