Skip to content

Commit

Permalink
Update getHost methods to also copy host flags, for use in exec->host…
Browse files Browse the repository at this point in the history
… transitions.

Part of work on execution transitions, #7935.

PiperOrigin-RevId: 248372791
  • Loading branch information
katre authored and copybara-github committed May 15, 2019
1 parent 74c927f commit 6ec7e47
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -670,6 +670,10 @@ public FragmentOptions getHost() {
// === Pass on C++ compiler features.
host.defaultFeatures = ImmutableList.copyOf(defaultFeatures);

// Save host options in case of a further exec->host transition.
host.hostCpu = hostCpu;
host.hostCompilationMode = hostCompilationMode;

return host;
}

0 comments on commit 6ec7e47

Please sign in to comment.