bazel: can't use gcc-ar as Bazel's ar
gcc provides a wrapper, gcc-ar, over binutils ar that passes the proper --plugin option so that ar can understand LTO objects. gcc-ar does some dodgy munging of the command line, which causes it to fail if all arguments are passed via param file, which is precisely how Bazel likes to pass ar arguments. Would it be possible to work around this in Bazel by putting the ar mode argument on the command line rather than the param file?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (7 by maintainers)
Wrapper script that I’m using: