mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 19:04:29 +02:00
Resolve #58 with handling assembly files
This commit is contained in:
@@ -48,7 +48,7 @@ commonvars.AddVariables(
|
|||||||
)
|
)
|
||||||
|
|
||||||
DefaultEnvironment(
|
DefaultEnvironment(
|
||||||
tools=["gcc", "g++", "ar", "gnulink", "platformio"],
|
tools=["gcc", "g++", "as", "ar", "gnulink", "platformio"],
|
||||||
toolpath=[join("$PIOBUILDER_DIR", "tools")],
|
toolpath=[join("$PIOBUILDER_DIR", "tools")],
|
||||||
variables=commonvars,
|
variables=commonvars,
|
||||||
|
|
||||||
|
@@ -26,6 +26,7 @@ env.Replace(
|
|||||||
ARFLAGS=["rcs"],
|
ARFLAGS=["rcs"],
|
||||||
|
|
||||||
ASFLAGS=[
|
ASFLAGS=[
|
||||||
|
"-c",
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
"-g", # include debugging info (so errors include line numbers)
|
||||||
"-x", "assembler-with-cpp",
|
"-x", "assembler-with-cpp",
|
||||||
"-mmcu=$BOARD_MCU"
|
"-mmcu=$BOARD_MCU"
|
||||||
|
@@ -25,6 +25,7 @@ env.Replace(
|
|||||||
ARFLAGS=["rcs"],
|
ARFLAGS=["rcs"],
|
||||||
|
|
||||||
ASFLAGS=[
|
ASFLAGS=[
|
||||||
|
"-c",
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
"-g", # include debugging info (so errors include line numbers)
|
||||||
"-x", "-assembler-with-cpp",
|
"-x", "-assembler-with-cpp",
|
||||||
"-mmcu=$BOARD_MCU"
|
"-mmcu=$BOARD_MCU"
|
||||||
|
@@ -24,6 +24,7 @@ env.Replace(
|
|||||||
ARFLAGS=["rcs"],
|
ARFLAGS=["rcs"],
|
||||||
|
|
||||||
ASFLAGS=[
|
ASFLAGS=[
|
||||||
|
"-c",
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
"-g", # include debugging info (so errors include line numbers)
|
||||||
"-x", "assembler-with-cpp",
|
"-x", "assembler-with-cpp",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
|
Reference in New Issue
Block a user