make: Add support for specifying a different compiler for assembler#6672
make: Add support for specifying a different compiler for assembler#6672kaspar030 merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
Couldn't we just use gcc as AS? |
|
I did not try to change any behaviour, just allow us to specify a separate compiler for assembler sources being built with gcc (*.S). There are assembly sources built using as too, these are named *.s, lowercase s. |
|
Ping @kaspar030 |
Just so I understand, there are some assembly files in the MIPS code that clang doesn't like, but gcc compiles fine? Can we get rid of ASSMSRC vs ASMSRC? gcc invokes gnu as, clang invokes the llvm assembler. Both run the preprocessor on *.S, not on *.s. |
Correct
Yes, let's do that. |
|
But could we merge this in the meantime while we work on that change? |
This will allow us to specify a separate compiler for assembly sources which are compiled with GCC (not AS). Clang has a problem with some of the assembly headers in the MIPS port and using GCC for the asm sources instead will allow Clang to build all of the C code. PR on the MIPS part is coming.