forked from platformio/platformio-core
Fix builder for assembling files
This commit is contained in:
@ -18,16 +18,10 @@ env.Replace(
|
||||
RANLIB="arm-none-eabi-ranlib",
|
||||
SIZETOOL="arm-none-eabi-size",
|
||||
|
||||
ARFLAGS=["rcs"],
|
||||
ASCOM=("$AS -o $TARGET -c -x assembler-with-cpp "
|
||||
"$CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES"),
|
||||
|
||||
ASFLAGS=[
|
||||
"-c",
|
||||
"-g", # include debugging info (so errors include line numbers)
|
||||
"-x", "assembler-with-cpp",
|
||||
"-Wall",
|
||||
"-mthumb",
|
||||
"-mcpu=${BOARD_OPTIONS['build']['cpu']}"
|
||||
],
|
||||
ARFLAGS=["rcs"],
|
||||
|
||||
CPPFLAGS=[
|
||||
"-g", # include debugging info (so errors include line numbers)
|
||||
|
@ -18,14 +18,10 @@ env.Replace(
|
||||
RANLIB="avr-ranlib",
|
||||
SIZETOOL="avr-size",
|
||||
|
||||
ARFLAGS=["rcs"],
|
||||
ASCOM=("$AS -o $TARGET -c -x assembler-with-cpp "
|
||||
"$CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES"),
|
||||
|
||||
ASFLAGS=[
|
||||
"-c",
|
||||
"-g", # include debugging info (so errors include line numbers)
|
||||
"-x", "assembler-with-cpp",
|
||||
"-mmcu=$BOARD_MCU"
|
||||
],
|
||||
ARFLAGS=["rcs"],
|
||||
|
||||
CCFLAGS=[
|
||||
"-g", # include debugging info (so errors include line numbers)
|
||||
|
@ -23,14 +23,10 @@ env.Replace(
|
||||
RANLIB="msp430-ranlib",
|
||||
SIZETOOL="msp430-size",
|
||||
|
||||
ARFLAGS=["rcs"],
|
||||
ASCOM=("$AS -o $TARGET -c -x assembler-with-cpp "
|
||||
"$CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES"),
|
||||
|
||||
ASFLAGS=[
|
||||
"-c",
|
||||
"-g", # include debugging info (so errors include line numbers)
|
||||
"-x", "-assembler-with-cpp",
|
||||
"-mmcu=$BOARD_MCU"
|
||||
],
|
||||
ARFLAGS=["rcs"],
|
||||
|
||||
CCFLAGS=[
|
||||
"-g", # include debugging info (so errors include line numbers)
|
||||
|
@ -50,7 +50,7 @@ def BuildFirmware(env, corelibs):
|
||||
|
||||
# enable "cyclic reference" for linker
|
||||
firmenv.Prepend(
|
||||
_LIBFLAGS="-Wl,--start-group ",
|
||||
_LIBFLAGS="-Wl,--start-group "
|
||||
)
|
||||
firmenv.Append(
|
||||
_LIBFLAGS=" -Wl,--end-group"
|
||||
|
Reference in New Issue
Block a user