Merge ASFLAGS and CCFLAGS in a proper way.

This commit is contained in:
Valeriy Koval
2016-03-03 20:28:06 +02:00
parent 1332413f63
commit 614a736eff
4 changed files with 13 additions and 16 deletions
+4 -4
View File
@@ -31,10 +31,7 @@ env.Replace(
ARFLAGS=["rcs"],
ASFLAGS=[
"-x", "assembler-with-cpp",
env.subst("$CCFLAGS")
],
ASFLAGS=["-x", "assembler-with-cpp"],
CCFLAGS=[
"-g", # include debugging info (so errors include line numbers)
@@ -71,7 +68,10 @@ env.Replace(
PROGSUFFIX=".elf"
)
env.Append(
ASFLAGS=env.get("CCFLAGS", [])[:],
BUILDERS=dict(
ElfToBin=Builder(
action=" ".join([