diff options
author | 2015-10-28 10:00:53 +0000 | |
---|---|---|
committer | 2015-10-28 16:04:31 +0000 | |
commit | 1c2eeaca1d813bfb22a77cab640502d72abedb9f (patch) | |
tree | a71658ff543fe1b401a9c3009c2df96890be50c6 /src/main/java/com/google/devtools/build/lib/skyframe/LocalDiffAwareness.java | |
parent | 50f29fbfa0bf4cccd3926ac3691831bb0918d3bd (diff) |
Bugfix: Host fragments could not be accessed properly through Skylark.
RuleContext returned fragments for the target configuration, even when Skylark requested fragments for the host configuration.
This Cl solves this bug. Since injecting a custom BuildConfiguration into out tests is surprisingly difficult, I tested this fix manually:
I wrote a custom bzl file with
def custom_rule_impl(ctx):
print("target = {}, host = {}".format(ctx.fragments.cpp.cpu, ctx.host_fragments.cpp.cpu))
and built the rule with --cpu ppc.
Output before the fix: target = ppc, host = ppc.
Output after the fix: target = ppc, host = k8.
--
MOS_MIGRATED_REVID=106479714
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/LocalDiffAwareness.java')
0 files changed, 0 insertions, 0 deletions