Open thii opened 3 years ago
@susinmotion how should we route ObjC rules issues like this one?
@jin you did exactly the right thing!
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team (@bazelbuild/triage
) if you think this issue is still relevant or you are interested in getting the issue resolved.
Description of the problem / feature request:
Support stripping Swift symbols for binaries built for Apple platforms.
Feature requests: what underlying problem are you trying to solve with this feature?
There's currently no option to allow stripping Swift symbols for binaries built for Apple platforms. Since
xcodebuild
's ipa exporting supports that (and defaults toYES
), results in binaries produced by Bazel has a slightly larger size compared to Xcode's.What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?release 4.0.0
Have you found anything relevant by searching the web?
From the
strip
man page:From the
xcodebuild -h
page:I found two code paths referencing to code stripping but
-T
is not passed, and passing it via--stripopt
doesn't take effect.https://github.com/bazelbuild/bazel/blob/25768512a6c30cdc6af3098078ef02375fd5c914/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java#L1561-L1574
https://github.com/bazelbuild/bazel/blob/ef903e08b270f3fa3c4d36f8122876a892b47087/tools/osx/crosstool/cc_toolchain_config.bzl#L296-L311