| commit | 5f6ca2ec816c3618eabff25b71ae6cd038a98a82 | [log] [tgz] |
|---|---|---|
| author | jcater <jcater@google.com> | Fri Apr 26 08:59:52 2019 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Fri Apr 26 09:01:17 2019 -0700 |
| tree | 23142e85491b3cfb80cc2a5d52865e15162ec66e | |
| parent | 6b3724fe4d030c493f8c605140c0f84a92da3b6a [diff] |
Add getExec method for SwiftCommandLineOptions. Part of work on execution transitions, #7935. PiperOrigin-RevId: 245428827
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 bf81f91..f605e8f 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 @@ host.copts = this.hostSwiftcoptList; return host; } + + @Override + public FragmentOptions getExec() { + SwiftCommandLineOptions exec = (SwiftCommandLineOptions) super.getExec(); + exec.copts = this.hostSwiftcoptList; + return exec; + } }