[RFC][Flang][driver] Try to support `flang -fc1as`

Hi, I’m trying to support flang-new *.s, use flang to compile assembler file. I’ve submitted a patch ⚙ D143478 [RFC][Flang][driver] Try to support `flang -fc1as`. I don’t know if flang need to reuse cc1as or use fc1as.

Two questions copied from @awarzynski

  • Does LLVM Flang require flang-new -fc1as?
  • If yes, why can’t Flang and Clang share it?

@sunshaoce Thanks for posting this RFC.

Could you be a bit more descriptive about what you are trying to support (assembly file to executable?)? Also if you can post in a place where both Flang and Clang community members (for e.g LLVM Project - LLVM Discussion Forums) can participate that would be great.

Thanks! I followed your advice.