diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-12-22 12:51:53 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-01-05 11:35:59 +0900 |
commit | 59de50963cc49f6aa003bd10f5a20f766186c02a (patch) | |
tree | e438f41a3413b034804fb39e15411b411a4551c3 /make_helpers | |
parent | f2e1d57e43a0688901cc5f83546c66079fce5451 (diff) |
Build: use CPP just for pre-processing
Using AS for pre-processing looks a bit weird, and some assembly
specific options are given for nothing. Rather, use CPP.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'make_helpers')
-rw-r--r-- | make_helpers/build_macros.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index 4ec060b6..dd8c2b50 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -262,11 +262,11 @@ $(eval PREREQUISITES := $(1).d) $(1): $(2) @echo " PP $$<" - $$(Q)$$(AS) $$(ASFLAGS) -P -E -D__LINKER__ -o $$@ $$< + $$(Q)$$(CPP) $$(CPPFLAGS) -P -D__ASSEMBLY__ -D__LINKER__ -o $$@ $$< $(PREREQUISITES): $(2) | $(dir ${1}) @echo " DEPS $$@" - $$(Q)$$(AS) $$(ASFLAGS) -M -MT $(1) -MF $$@ $$< + $$(Q)$$(CPP) $$(CPPFLAGS) -D__ASSEMBLY__ -M -MT $(1) -MF $$@ $$< ifdef IS_ANYTHING_TO_BUILD -include $(PREREQUISITES) |