diff options
author | 2018-08-07 04:40:40 -0700 | |
---|---|---|
committer | 2018-08-07 04:42:01 -0700 | |
commit | 473ea10c0dc76f3760f4f4afd3adb3b40b40abdb (patch) | |
tree | a48ecdbb3fc87012d98111e6e753d6c79fcf5888 /src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchain.java | |
parent | 6eefeb04b900be29d96a87dcdc3938151d98d9bf (diff) |
Pass cc_toolchain location to FeatureConfiguration
Paths to tools in CROSSTOOL are either absolute or relative to the CROSSTOOL location (which is the same as cc_toolchain location). As in the future CROSSTOOL will be gone, and the new skylark rule that will replace CROSSTOOL will not have to be in the same location as cc_toolchain, we need to pass information to FeatureConfiguration about the location of the cc_toolchain in use, so we can calculate the workspace relative paths to the tools.
RELNOTES: None.
PiperOrigin-RevId: 207695703
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchain.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchain.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchain.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchain.java index ddf2a7f1e6..f49c8d51af 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchain.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchain.java @@ -659,9 +659,7 @@ public class CcToolchain implements RuleConfiguredTargetFactory { toolchain, cppConfiguration.getCrosstoolTopPathFragment()); CcToolchainConfigInfo ccToolchainConfigInfo = CcToolchainConfigInfo.fromToolchain( - cppConfiguration.getCrosstoolFile().getProto(), - toolchain, - cppConfiguration.getCrosstoolTopPathFragment()); + cppConfiguration.getCrosstoolFile().getProto(), toolchain); return CppToolchainInfo.create( cppConfiguration.getCrosstoolTopPathFragment(), cppConfiguration.getCcToolchainRuleLabel(), |