diff options
author | 2017-08-09 18:14:53 +0200 | |
---|---|---|
committer | 2017-08-10 13:47:52 +0200 | |
commit | 3f4bd84e9230b89d2cea120dec9c23e9a79f5be7 (patch) | |
tree | 6a21c05e21abf7b3261d4f25a5a6d20729c572eb /src/main/java/com/google/devtools/build/lib/rules/cpp/proto | |
parent | dcf368372198c1a317f755f5ec6a25a158de6fda (diff) |
Defer expansion of certain proto command line string arguments.
Memory is saved by sharing the format string and label object instances, instead of constructing new strings for each action.
RELNOTES: None
PiperOrigin-RevId: 164731899
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/proto')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/proto/CcProtoAspect.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/proto/CcProtoAspect.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/proto/CcProtoAspect.java index be5a99d5e4..7415a1044f 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/proto/CcProtoAspect.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/proto/CcProtoAspect.java @@ -309,7 +309,7 @@ public class CcProtoAspect extends NativeAspectClass implements ConfiguredAspect supportData.getDirectProtoSources(), supportData.getTransitiveImports(), supportData.getProtosInDirectDeps(), - ruleContext.getLabel().getCanonicalForm(), + ruleContext.getLabel(), outputs, "C++", true /* allowServices */); |