aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2015-06-22 09:07:12 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2015-06-23 09:01:17 +0000
commita7313698a7c715680eeafbd7b73e62c706523b9e (patch)
treea49a10a0059662655da177fa7fefc4e26dc9cec1 /src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java
parent135c9ce35966db63ffc6bf757168a4116c102954 (diff)
*** Reason for rollback *** Breaks ios_test targets. *** Original change description *** Add two binary size optimizations when --compilation_mode=opt is specified: 1. Symbol strippings. A new strip action is registered that uses Darwin tool /usr/bin/strip to remove the symbol table of the linked binary. 2. Dead-code strippings, which uses linker flag "--dead_strip" to remove unreachable code in binary link action. RELNOTES: Perform symbol and dead code strippings on linked binaries generated by ObjC rules. -- MOS_MIGRATED_REVID=96551473
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java b/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java
index 133745b364..b52de70399 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java
@@ -119,24 +119,13 @@ final class IntermediateArtifacts {
/**
* The artifact which is the binary (or library) which is comprised of one or more .a files linked
- * together. Compared to the artifact returned by {@link #unstrippedSingleArchitectureBinary},
- * this artifact is stripped of symbol table when --compilation_mode=opt is specified.
+ * together.
*/
- public Artifact strippedSingleArchitectureBinary() {
+ public Artifact singleArchitectureBinary() {
return appendExtension("_bin");
}
/**
- * The artifact which is the binary (or library) which is comprised of one or more .a files linked
- * together. It also contains full debug symbol information, compared to the artifact returned
- * by {@link #strippedSingleArchitectureBinary}. This artifact will serve as input for the symbol
- * strip action and is only created when --compilation_mode=opt is specified.
- */
- public Artifact unstrippedSingleArchitectureBinary() {
- return appendExtension("_bin_unstripped");
- }
-
- /**
* Lipo binary generated by combining one or more linked binaries. This binary is the one included
* in generated bundles and invoked as entry point to the application.
*/