Clang supports the command line parameter "--target=", but llc wants "-mtriple=". It would be helpful if this could be aligned. So either clang also understands mtriple=" or llc also understands "--target=".
Then a makefile only needs one definition for the target, e.g. for ARM Cortex-A7:
Extended Description
Clang supports the command line parameter "--target=", but llc wants "-mtriple=". It would be helpful if this could be aligned. So either clang also understands mtriple=" or llc also understands "--target=".
Then a makefile only needs one definition for the target, e.g. for ARM Cortex-A7:
TARGET := --target=armv7a-arm-none-eabi -mcpu=cortex-a7
clang $(TARGET) .... llc $(TARGET) ....