You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[clang dependency scanning] C APIs for Current Working Directory Optimization (#10146)
This PR implements two new C APIs so the build system can communicate with the dependency scanner about current working directory optimization.
Two new functions are added:
1. `void clang_experimental_DependencyScannerServiceOptions_setCWDOptimization(CXDependencyScannerServiceOptions Opts, int)`: the caller can use this function to set `Opts` to indicate that it can support current working directory optimization.
2. `int clang_experimental_DepGraphModule_isCWDIgnored(CXDepGraphModule)`: this function can retrieve the module info from the scanner, indicating if the current working directory is ignored for this module's context hash.
As an example usage, the user of the APIs (e.g. a build system) can use them to set reasonable debug working directories for each `pcm`s.
rdar://145860213
0 commit comments