You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,7 @@ The arguments for *compile* are:
348
348
*`-t <TOOLCHAIN>` to select a toolchain (of those defined in `mbed_settings.py`, see above). The value can be either `ARM` (ARM Compiler 5), `GCC_ARM` (GNU ARM Embedded), or `IAR` (IAR Embedded Workbench for ARM).
349
349
*`--source <SOURCE>` to select the source directory. The default is `.` (the current directorty). You can specify multiple source locations, even outside the program tree.
350
350
*`--build <BUILD>` to select the build directory. Default: `BUILD/` inside your program.
351
-
*`--options <OPTIONS>` to select compile options. Examples: "debug-info": will generate debugging information; "small-build" will use microlib/nanolib, but limit RTOS to single thread; "save-asm": will save the asm generated by the compiler
351
+
*`--profile <PATH_TO_BUILD_PROFILE>` to select a path to a build profile configuration file. Example: mbed-os/tools/profiles/debug.json
352
352
*`--library` to compile the code as a [static .a/.ar library](#compiling-static-libraries).
353
353
*`--config` to inspect the run-time compile configuration (see below).
354
354
*`-S` or `--supported` shows a matrix of the supported targets and toolchains.
<spanclass="tips">**Tip:** If you have files that you want to compile only in release mode, put them in a directory called `TARGET_RELEASE` at any level of your tree. If you have files that you want to compile only in debug mode, put them in a directory called `TARGET_DEBUG` at any level of your tree (then use `-o debug-info` as explained above).
439
+
<spanclass="tips">**Tip:** If you have files that you want to compile only in release mode, put them in a directory called `TARGET_RELEASE` at any level of your tree. If you have files that you want to compile only in debug mode, put them in a directory called `TARGET_DEBUG` at any level of your tree (then use `--profile` as explained above).
440
440
</span>
441
441
442
442
### Automating toolchain and target selection
@@ -510,7 +510,7 @@ The arguments to `test` are:
510
510
*`-n <TESTS_BY_NAME>` to limit the tests built or ran to a comma separated list (ex. test1,test2,test3)
511
511
*`--source <SOURCE>` to select the source directory. Default is `.` (the current dir). You can specify multiple source locations, even outside the program tree.
512
512
*`--build <BUILD>` to select the build directory. Default: `BUILD/` inside your program.
513
-
*`--options <OPTIONS>` to select compile options. Examples: "debug-info": will generate debugging information; "small-build" will use microlib/nanolib, but limit RTOS to single thread; "save-asm": will save the asm generated by the compiler
513
+
*`--profile <PATH_TO_BUILD_PROFILE>` to select a path to a build profile configuration file. Example: mbed-os/tools/profiles/debug.json
514
514
*`-c or --clean` to clean the build directory before compiling,
515
515
*`--test-spec <TEST_SPEC>` to set the path for the test spec file used when building and running tests (the default path is the build directory).
516
516
*`-v` or `--verbose` for verbose diagnostic output.
dict(name=['-o', '--options'], action='append', help='Compile options. Examples: "debug-info": generate debugging information; "small-build" to use microlib/nanolib, but limit RTOS to single thread; "save-asm": save the asm generated by the compiler'),
2017
+
dict(name=['--profile'], action='append', help='Path of a build profile configuration file. Example: mbed-os/tools/profiles/debug.json'),
2018
2018
dict(name='--library', dest='compile_library', action='store_true', help='Compile the current program or library as a static library.'),
dict(name=['-o', '--options'], action='append', help='Compile options. Examples: "debug-info": generate debugging information; "small-build" to use microlib/nanolib, but limit RTOS to single thread; "save-asm": save the asm generated by the compiler'),
2117
+
dict(name=['--profile'], action='append', help='Path of a build profile configuration file. Example: mbed-os/tools/profiles/debug.json'),
2118
2118
dict(name=['-c', '--clean'], action='store_true', help='Clean the build directory before compiling'),
2119
2119
dict(name='--test-spec', dest="test_spec", help="Path used for the test spec file used when building and running tests (the default path is the build directory)"),
2120
2120
dict(name='--app-config', dest="app_config", help="Path of an app configuration file (Default is to look for 'mbed_app.json')"),
2121
2121
help='Find, build and run tests',
2122
2122
description=("Find, build, and run tests in a program and libraries"))
0 commit comments