llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.73k stars 11.43k forks source link

Support command line parameter "--target=<triple>" as alternative to "-mtriple=<triple>" #23414

Open llvmbot opened 9 years ago

llvmbot commented 9 years ago
Bugzilla Link 23040
Version 3.6
OS Linux
Reporter LLVM Bugzilla Contributor
CC @rnk

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) ....

rnk commented 9 years ago

+99999