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, bazelbuild#7935.

PiperOrigin-RevId: 248345771
  • Loading branch information
katre authored and irengrig committed Jun 18, 2019
1 parent ef3260c commit f23b17b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,16 @@ public FragmentOptions getHost() {
host.dontEnableHostNonhost = dontEnableHostNonhost;
host.requireCtxInConfigureFeatures = requireCtxInConfigureFeatures;
host.useStandaloneLtoIndexingCommandLines = useStandaloneLtoIndexingCommandLines;

// Save host options for further use.
host.hostCoptList = hostCoptList;
host.hostConlyoptList = hostConlyoptList;
host.hostCppCompiler = hostCppCompiler;
host.hostCrosstoolTop = hostCrosstoolTop;
host.hostCxxoptList = hostCxxoptList;
host.hostLibcTopLabel = hostLibcTopLabel;
host.hostLinkoptList = hostLinkoptList;

return host;
}

Expand Down

0 comments on commit f23b17b

Please # to comment.