https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80782
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |*-*-darwin* Host| |*-*-darwin* Summary|Feature request: use the |Configure options to use |llvm/clang assembler on Mac |llvm/clang assembler on Mac Build| |*-*-darwin* --- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to René J.V. Bertin from comment #4) > Write a wrapper script that just prepends or appends `-q` to the arguments > and then calls the actual `as` command, and use that wrapper with the > `--with-as` option? Crossing fingers that GCC itself will build... I assume something like --with-as=llvm-as doesn't work. It would require configure to know how to detect the llvm assembler and know how to invoke it correctly. > What I had in mind was calling `clang -cc1as` or even `llvm-as` directly, > with the proper arguments. That ought to give better control over the > generated object code than relying on a 3rd party (Apple) to implement the > GNU -> clang argument translation. If Apple's gas already understands the llvm assembler options then leveraging that seems sensible. So all that would be needed is a way to configure GCC to always use -Wa,-q