Ying Wang | 1f98283 | 2014-02-06 18:08:44 -0800 | [diff] [blame] | 1 | # Clang flags for arm arch, target or host. |
| 2 | |
Tim Murray | 43d5e1b | 2014-04-03 16:06:59 -0700 | [diff] [blame] | 3 | CLANG_CONFIG_arm_EXTRA_ASFLAGS := \ |
| 4 | -no-integrated-as |
Ying Wang | 1f98283 | 2014-02-06 18:08:44 -0800 | [diff] [blame] | 5 | |
| 6 | CLANG_CONFIG_arm_EXTRA_CFLAGS := \ |
Tim Murray | 43d5e1b | 2014-04-03 16:06:59 -0700 | [diff] [blame] | 7 | -no-integrated-as |
Ying Wang | 1f98283 | 2014-02-06 18:08:44 -0800 | [diff] [blame] | 8 | |
Tim Murray | 43d5e1b | 2014-04-03 16:06:59 -0700 | [diff] [blame] | 9 | CLANG_CONFIG_arm_EXTRA_CPPFLAGS := \ |
| 10 | -no-integrated-as |
| 11 | |
| 12 | CLANG_CONFIG_arm_EXTRA_LDFLAGS := \ |
| 13 | -no-integrated-as |
Ying Wang | 1f98283 | 2014-02-06 18:08:44 -0800 | [diff] [blame] | 14 | |
| 15 | # Include common unknown flags |
| 16 | CLANG_CONFIG_arm_UNKNOWN_CFLAGS := \ |
| 17 | $(CLANG_CONFIG_UNKNOWN_CFLAGS) \ |
| 18 | -mthumb-interwork \ |
| 19 | -fgcse-after-reload \ |
| 20 | -frerun-cse-after-loop \ |
| 21 | -frename-registers \ |
| 22 | -fno-builtin-sin \ |
| 23 | -fno-strict-volatile-bitfields \ |
| 24 | -fno-align-jumps \ |
| 25 | -Wa,--noexecstack |
| 26 | |
| 27 | define subst-clang-incompatible-arm-flags |
| 28 | $(subst -march=armv5te,-march=armv5t,\ |
| 29 | $(subst -march=armv5e,-march=armv5,\ |
| 30 | $(subst -mcpu=cortex-a15,-march=armv7-a,\ |
| 31 | $(1)))) |
| 32 | endef |