Skip to content

[SR-10064] Change swift's cmake to use sandboxed compile commands to catch missing cmake dependencies #52466

Open
@gottesmm

Description

@gottesmm
Previous ID SR-10064
Radar rdar://48723199
Original Reporter @gottesmm
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Bug, CMake
Assignee @shahmishal
Priority Medium

md5: 80a12190344bbf41e231ea59753cd199

Issue Description:

ChrisB has implemented in LLVM the ability to sand box compile commands. What this does is disable access to the file system except for dependencies explicitly specified by cmake. This ensures that if we have a dependency that was missed, the compile job fails.

My understanding is that it is good enough now for LLVM's build but it does not work for Swift/Clang yet. Helping ChrisB (if needed)/enabling once it works for swift with this would provide large benefit to the project's CI and the project's developer productivity by defining away this problem.

Here is the permalink to the code that does this.

https://github.com/llvm/llvm-project/blob/d15a4154a8b7391941e0592427588b0a1b229e65/llvm/cmake/modules/AddLLVM.cmake#L1706

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.cmake

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions