Skip to content

[clang][cas] Work around -cc1 sandbox violations#12110

Open
jansvoboda11 wants to merge 1 commit intonextfrom
jan_svoboda/cas-cc1-sandbox
Open

[clang][cas] Work around -cc1 sandbox violations#12110
jansvoboda11 wants to merge 1 commit intonextfrom
jan_svoboda/cas-cc1-sandbox

Conversation

@jansvoboda11
Copy link

After llvm#174653, some CAS tests started failing with sandbox violations. This PR works around these.

The CompileJobCache::maybeIngestNonVirtualOutputFromFileSystem() function already contains this FIXME:

All consumers should adopt \c llvm::vfs::OutputBackend and this unction should go away.

So adding another FIXME for the sandbox disablement itself felt redundant.

The sandbox disablements around the dependency scanner server/daemon infrastructure are obviously not formal inputs/outputs of the compiler, so I didn't feel the need to mark those with FIXMEs or other comments.

However, the many sandbox disablements in cc1depscan_main.cpp make me question whether we should just disable sandbox once at the start of cc1depscan_main() and only re-enable it when entering into the scanner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants