[llvm-dev] How to pass march flag to GCC Assembler arch64-linux-gnu-as

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 26 10:05:29 PDT 2015


On 26 October 2015 at 09:52, Sri via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> I am passing "-march=armv8-a+crypto" to clang command but how do i promote
> the same flag to assembler arch64-linux-gnu-as through clang?

You could certainly argue Clang should be forwarding that argument
automatically (assuming you did specify it to Clang itself) as part of
supporting -fno-integrated-as. Not that I think we really encourage
-fno-integrated-as; what problems are you having with the internal
one?

Until someone fixes that issue though, you can use
"-Wa,-march=armv8-a+crypto" to give an argument to the assembler
manually.

Tim.


More information about the llvm-dev mailing list