swiftlang/swift-build

Allow libclang_scanner_scan_dependencies to propagate an environment dictionary to clang

Open

#835 opened on Oct 2, 2025

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

Repository metrics

Stars
 (2,219 stars)
PR merge metrics
 (Avg merge 2d 22h) (59 merged PRs in 30d)

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