From 5f6ca2ec816c3618eabff25b71ae6cd038a98a82 Mon Sep 17 00:00:00 2001 From: jcater Date: Fri, 26 Apr 2019 08:59:52 -0700 Subject: [PATCH] Add getExec method for SwiftCommandLineOptions. Part of work on execution transitions, #7935. PiperOrigin-RevId: 245428827 --- .../lib/rules/apple/swift/SwiftCommandLineOptions.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/google/devtools/build/lib/rules/apple/swift/SwiftCommandLineOptions.java b/src/main/java/com/google/devtools/build/lib/rules/apple/swift/SwiftCommandLineOptions.java index bf81f91bddf0a9..f605e8ff26f546 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/apple/swift/SwiftCommandLineOptions.java +++ b/src/main/java/com/google/devtools/build/lib/rules/apple/swift/SwiftCommandLineOptions.java @@ -47,4 +47,11 @@ public FragmentOptions getHost() { host.copts = this.hostSwiftcoptList; return host; } + + @Override + public FragmentOptions getExec() { + SwiftCommandLineOptions exec = (SwiftCommandLineOptions) super.getExec(); + exec.copts = this.hostSwiftcoptList; + return exec; + } }