@@ -1907,10 +1907,11 @@ def status_(ignore=False):
1907
1907
dict (name = '--source' , action = 'append' , help = 'Source directory. Default: . (current dir)' ),
1908
1908
dict (name = '--build' , help = 'Build directory. Default: .build/' ),
1909
1909
dict (name = ['-c' , '--clean' ], action = 'store_true' , help = 'Clean the build directory before compiling' ),
1910
+ dict (name = ['-N' , '--artifact-name' ], help = 'Name of the built program or library' ),
1910
1911
dict (name = ['-S' , '--supported' ], dest = 'supported' , action = 'store_true' , help = 'Shows supported matrix of targets and toolchains' ),
1911
1912
help = 'Compile code using the mbed build tools' ,
1912
1913
description = ("Compile this program using the mbed build tools." ))
1913
- def compile_ (toolchain = None , mcu = None , source = False , build = False , compile_library = False , compile_config = False , config_prefix = None , clean = False , supported = False ):
1914
+ def compile_ (toolchain = None , mcu = None , source = False , build = False , compile_library = False , compile_config = False , config_prefix = None , clean = False , artifact_name = None , supported = False ):
1914
1915
# Gather remaining arguments
1915
1916
args = remainder
1916
1917
# Find the root of the program
@@ -1957,6 +1958,7 @@ def compile_(toolchain=None, mcu=None, source=False, build=False, compile_librar
1957
1958
+ (['-c' ] if clean else [])
1958
1959
+ list (chain .from_iterable (izip (repeat ('--source' ), source )))
1959
1960
+ ['--build' , build ]
1961
+ + (['--artifact-name' , artifact_name ] if artifact_name else [])
1960
1962
+ (['-v' ] if verbose else [])
1961
1963
+ args ,
1962
1964
env = env )
@@ -1971,6 +1973,7 @@ def compile_(toolchain=None, mcu=None, source=False, build=False, compile_librar
1971
1973
+ (['-c' ] if clean else [])
1972
1974
+ list (chain .from_iterable (izip (repeat ('--source' ), source )))
1973
1975
+ ['--build' , build ]
1976
+ + (['--artifact-name' , artifact_name ] if artifact_name else [])
1974
1977
+ (['-v' ] if verbose else [])
1975
1978
+ args ,
1976
1979
env = env )
0 commit comments