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

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([

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)
@ -67,6 +64,8 @@ env.Replace(
)
env.Append(
ASFLAGS=env.get("CCFLAGS", [])[:],
BUILDERS=dict(
ElfToEep=Builder(
action=" ".join([

View File

@ -64,10 +64,7 @@ env.Replace(
ARFLAGS=["rcs"],
ASFLAGS=[
"-x", "assembler-with-cpp",
env.subst("$CCFLAGS")
],
ASFLAGS=["-x", "assembler-with-cpp"],
CFLAGS=[
"-std=gnu99",
@ -145,6 +142,8 @@ env.Replace(
)
env.Append(
ASFLAGS=env.get("CCFLAGS", [])[:],
BUILDERS=dict(
ElfToBin=Builder(
action=" ".join([

View File

@ -36,10 +36,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)
@ -77,6 +74,8 @@ env.Replace(
)
env.Append(
ASFLAGS=env.get("CCFLAGS", [])[:],
BUILDERS=dict(
ElfToHex=Builder(
action=" ".join([