Skip to content

[Proposal] Simplify build profiles: debug and release only #3693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/build_profiles.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Build Profiles
Mbed 5.0 supports three primary build profiles, *default*, *debug* and *small*. When using
the online compiler the *default* profile is used. When building from the command line
Mbed 5.0 supports three primary build profiles, *develop*, *debug* and *release*. When using
the online compiler the *develop* profile is used. When building from the command line
the desired profile can be can be selected by adding the ```--profile <profile>```
command line flag. Custom user defined profiles can also be specific by giving the path
command line flag, but `develop` will be used by default. Custom user defined profiles can also be specific by giving the path
the the profile.

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

## Small profile
## Release profile
* Smallest profile and still fast
* Minimal error information
* Hard to follow code flow when using a debugger
2 changes: 1 addition & 1 deletion tools/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def list_profiles():
"""
return [fn.replace(".json", "") for fn in listdir(join(dirname(__file__), "profiles")) if fn.endswith(".json")]

def extract_profile(parser, options, toolchain, fallback="default"):
def extract_profile(parser, options, toolchain, fallback="develop"):
"""Extract a Toolchain profile from parsed options

Positional arguments:
Expand Down
File renamed without changes.
File renamed without changes.