diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java index 5fd8e192e5d341..da002296653059 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java @@ -1074,6 +1074,9 @@ private StrippingType getStrippingType(ExtraLinkArgs extraLinkArgs) { if (Iterables.contains(extraLinkArgs, "-dynamiclib")) { return StrippingType.DYNAMIC_LIB; } + if (Iterables.contains(extraLinkArgs, "-bundle")) { + return StrippingType.LOADABLE_BUNDLE; + } if (Iterables.contains(extraLinkArgs, "-kext")) { return StrippingType.KERNEL_EXTENSION; } @@ -1544,6 +1547,7 @@ private static CommandLine symbolStripCommandLine( private enum StrippingType { DEFAULT, DYNAMIC_LIB, + LOADABLE_BUNDLE, KERNEL_EXTENSION } @@ -1555,8 +1559,9 @@ private void registerBinaryStripAction(Artifact binaryToLink, StrippingType stri final ImmutableList stripArgs; switch (strippingType) { case DYNAMIC_LIB: + case LOADABLE_BUNDLE: case KERNEL_EXTENSION: - // For dylibs and kexts, must strip only local symbols. + // For dylibs, loadable bundles, and kexts, must strip only local symbols. stripArgs = ImmutableList.of("-x"); break; case DEFAULT: