Since for clang 3.5.0 ARM EHABI is now the default, the -mllvm

-arm-enable-ehabi flag is no longer supported.  Use it only for older
versions of clang.
This commit is contained in:
Dimitry Andric 2014-11-26 23:28:16 +00:00
parent 10b16cca63
commit 5d9e9016ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/clang350-import/; revision=275151

View File

@ -47,8 +47,10 @@ CFLAGS.clang += -mfpu=none
.if !empty(DDB_ENABLED)
CFLAGS += -funwind-tables
# clang requires us to tell it to emit assembly with unwind information
CFLAGS.clang += -mllvm -arm-enable-ehabi
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 30500
# clang < 3.5.0 requires us to tell it to emit assembly with unwind information
CFLAGS += -mllvm -arm-enable-ehabi
.endif
.endif
# hack because genassym.c includes sys/bus.h which includes these.