We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using apple_static_library to link hundreds of objc_library targets, the linktool failed for the argument list too long.
apple_static_library
objc_library
linktool
macOS
bazel info release
release 3.6.0
objc-archive uses -filelist to pass objects to linker:
-filelist
https://cs.opensource.google/bazel/bazel/+/master:src/test/java/com/google/devtools/build/lib/packages/util/mock/osx_cc_toolchain_config.bzl;l=2245-2274?q=obj_list_path&ss=bazel%2Fbazel
objc-fully-link uses argument list directly:
https://cs.opensource.google/bazel/bazel/+/master:src/test/java/com/google/devtools/build/lib/packages/util/mock/osx_cc_toolchain_config.bzl;l=4946-4985?q=obj_list_path&ss=bazel%2Fbazel
The text was updated successfully, but these errors were encountered:
It seems that #12265 has fixed this in 4.0. Closing accordingly.
Sorry, something went wrong.
No branches or pull requests
Description of the problem:
When using
apple_static_library
to link hundreds ofobjc_library
targets, thelinktool
failed for the argument list too long.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
objc_library
apple_static_library
depend on themapple_static_library
What operating system are you running Bazel on?
What's the output of
bazel info release
?Have you found anything relevant by searching the web?
objc-archive uses
-filelist
to pass objects to linker:https://cs.opensource.google/bazel/bazel/+/master:src/test/java/com/google/devtools/build/lib/packages/util/mock/osx_cc_toolchain_config.bzl;l=2245-2274?q=obj_list_path&ss=bazel%2Fbazel
objc-fully-link uses argument list directly:
https://cs.opensource.google/bazel/bazel/+/master:src/test/java/com/google/devtools/build/lib/packages/util/mock/osx_cc_toolchain_config.bzl;l=4946-4985?q=obj_list_path&ss=bazel%2Fbazel
The text was updated successfully, but these errors were encountered: