From a7313698a7c715680eeafbd7b73e62c706523b9e Mon Sep 17 00:00:00 2001 From: Laszlo Csomor Date: Mon, 22 Jun 2015 09:07:12 +0000 Subject: Rollback of commit 6af85020b520a9dd2bd913562b16716c29c3dbc3. *** 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 --- .../build/lib/rules/objc/IntermediateArtifacts.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java') 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,23 +119,12 @@ 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. -- cgit v1.2.3