swiftlang/swift-build

Allow libclang_scanner_scan_dependencies to propagate an environment dictionary to clang

Open

#835 opened on Oct 2, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Swift (184 forks)github user discovery
good first issue

Repository metrics

Stars
 (2,219 stars)
PR merge metrics
 (PR metrics pending)

Description

libclang_scanner_scan_dependencies is invoked in-process and doesn't currently have a means to propagate an environment dictionary, so it uses the calling process's.

This impacts the explicitModulesEnvironmentTest(), which has to mutate the process environment as a workaround.

Contributor guide