Improve building of ASM files

This commit is contained in:
Valeriy Koval
2015-02-24 18:15:17 +02:00
parent d142b6e6d1
commit fedb7527f4
4 changed files with 23 additions and 19 deletions
+3 -4
View File
@@ -16,18 +16,17 @@ env = DefaultEnvironment()
env.Replace(
AR="msp430-ar",
AS="msp430-gcc",
AS="msp430-as",
CC="msp430-gcc",
CXX="msp430-g++",
OBJCOPY="msp430-objcopy",
RANLIB="msp430-ranlib",
SIZETOOL="msp430-size",
ASCOM=("$AS -o $TARGET -c -x assembler-with-cpp "
"$CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES"),
ARFLAGS=["rcs"],
ASPPFLAGS=["-x", "assembler-with-cpp"],
CCFLAGS=[
"-g", # include debugging info (so errors include line numbers)
"-Os", # optimize for size