Skip to content

Commit 944adfe

Browse files
committed
Swift: allow modifying frontend outputs
1 parent 219ed64 commit 944adfe

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

swift/third_party/load.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def load_dependencies(repository_name):
3333
build_file = _get_build(repository_name, "swift-llvm-support"),
3434
sha256 = sha256,
3535
patch_args = ["-p1"],
36+
patches = [
37+
_get_patch(repository_name, "swift-llvm-support", "allow_modfying_output"),
38+
],
3639
)
3740

3841
http_archive(
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
We want to be able to redirect module output options to an internal artifact storage.
2+
--- a/include/swift/Frontend/FrontendInputsAndOutputs.h 2022-11-30 12:57:18.000000000 +0100
3+
+++ b/include/swift/Frontend/FrontendInputsAndOutputs.h 2022-12-08 10:30:43.286040435 +0100
4+
@@ -182,8 +182,6 @@
5+
llvm::MemoryBuffer *buffer = nullptr);
6+
7+
// Outputs
8+
-
9+
-private:
10+
friend class ArgsToFrontendOptionsConverter;
11+
friend struct InterfaceSubContextDelegateImpl;
12+
void setMainAndSupplementaryOutputs(

0 commit comments

Comments
 (0)