mirror of
https://github.com/platformio/platform-windows_x86.git
synced 2025-09-04 17:00:05 +00:00
add exec / upload target (#6)
This commit is contained in:
@@ -60,6 +60,16 @@ elif get_systype() in ("linux_x86_64", "linux_i686"):
|
||||
|
||||
target_bin = env.BuildProgram()
|
||||
|
||||
#
|
||||
# Target: Execute binary
|
||||
#
|
||||
|
||||
exec_action = env.VerboseAction(
|
||||
"$SOURCE $PROGRAM_ARGS", "Executing $SOURCE")
|
||||
|
||||
AlwaysBuild(env.Alias("exec", target_bin, exec_action))
|
||||
AlwaysBuild(env.Alias("upload", target_bin, exec_action))
|
||||
|
||||
#
|
||||
# Target: Print binary size
|
||||
#
|
||||
|
Reference in New Issue
Block a user