Skip to content

Commit 40d3b22

Browse files
committed
Build: Rework build profiles
Rename small.json to release.json, default.json to develop.json and make it the default profile.
1 parent 65956d1 commit 40d3b22

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/build_profiles.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Build Profiles
2-
Mbed 5.0 supports three primary build profiles, *default*, *debug* and *small*. When using
3-
the online compiler the *default* profile is used. When building from the command line
2+
Mbed 5.0 supports three primary build profiles, *develop*, *debug* and *release*. When using
3+
the online compiler the *develop* profile is used. When building from the command line
44
the desired profile can be can be selected by adding the ```--profile <profile>```
5-
command line flag. Custom user defined profiles can also be specific by giving the path
5+
command line flag, but `develop` will be used by default. Custom user defined profiles can also be specific by giving the path
66
the the profile.
77

8-
## Default profile
8+
## Develop profile
99
* Small and fast code
1010
* Full error information - e.x. asserts have filename and line number
1111
* Hard to follow code flow when using a debugger
@@ -15,7 +15,7 @@ the the profile.
1515
* Full error information - e.x. asserts have filename and line number
1616
* Largest and slowest profile
1717

18-
## Small profile
18+
## Release profile
1919
* Smallest profile and still fast
2020
* Minimal error information
2121
* Hard to follow code flow when using a debugger

tools/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def list_profiles():
100100
"""
101101
return [fn.replace(".json", "") for fn in listdir(join(dirname(__file__), "profiles")) if fn.endswith(".json")]
102102

103-
def extract_profile(parser, options, toolchain, fallback="default"):
103+
def extract_profile(parser, options, toolchain, fallback="develop"):
104104
"""Extract a Toolchain profile from parsed options
105105
106106
Positional arguments:
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)