diff options
author | 2017-02-24 15:20:56 +0000 | |
---|---|---|
committer | 2017-02-27 15:04:49 +0000 | |
commit | dacc16dde31498f35d124ff632f2d710a0de1111 (patch) | |
tree | 3c825bb5f0a02b5d3ca3e4081501a5c0e49f767c /src/main/java/com/google/devtools/build/lib/rules/objc/CrosstoolCompilationSupport.java | |
parent | c87cffae61e4e39f58a2109f32a06ed0924438b3 (diff) |
CrosstoolCompilationSupport registers a binary strip action when binary
stripping is enabled.
--
PiperOrigin-RevId: 148458258
MOS_MIGRATED_REVID=148458258
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/CrosstoolCompilationSupport.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/CrosstoolCompilationSupport.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/CrosstoolCompilationSupport.java b/src/main/java/com/google/devtools/build/lib/rules/objc/CrosstoolCompilationSupport.java index edaeb543c5..b4c693a92d 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/CrosstoolCompilationSupport.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/CrosstoolCompilationSupport.java @@ -254,7 +254,11 @@ public class CrosstoolCompilationSupport extends CompilationSupport { .setFeatureConfiguration(getFeatureConfiguration(ruleContext, buildConfiguration)) .build(); ruleContext.registerAction(executableLinkAction); - + + if (objcConfiguration.shouldStripBinary()) { + registerBinaryStripAction(binaryToLink, StrippingType.DEFAULT); + } + return this; } private CcLibraryHelper createCcLibraryHelper(ObjcProvider objcProvider, |