Skip to content
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

Fixed description of the build-type property, default to debug #241

Merged
merged 2 commits into from
Mar 6, 2024
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
26 changes: 8 additions & 18 deletions docs/reference/target-declaration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A target specification may have optional parameters, the names and values of whi

- [**auth**](#auth): A boolean specifying to apply authorization between RTI and federates when federated execution.
- [**build**](#build): A command to execute after code generation instead of the default compile command.
- [**build-type**](#build-type): One of Release (the default), Debug, RelWithDebInfo and MinSizeRel.
- [**build-type**](#build-type): One of Debug (the default), Release, RelWithDebInfo and MinSizeRel.
- [**cargo-dependencies**](#cargo-dependencies): (Rust only) list of dependencies to include in the generated Cargo.toml file.
- [**cargo-features**](#cargo-features): (Rust only) List of string names of features to include.
- [**cmake**](#cmake): Whether to use cmake for building.
Expand Down Expand Up @@ -56,7 +56,7 @@ c={
`target C {
auth: <true or false>
build: <string>,
build-type: <Release, Debug, RelWithDebInfo, or MinSizeRel>,
build-type: <Debug, Release, RelWithDebInfo, or MinSizeRel>,
cmake: <true or false>,
cmake-include: <string or list of strings>,
compiler: <string>,
Expand All @@ -74,7 +74,7 @@ c={
}
cpp={
`target Cpp {
build-type: <Release, Debug, RelWithDebInfo, or MinSizeRel>,
build-type: <Debug, Release, RelWithDebInfo, or MinSizeRel>,
cmake-include: <string or list of strings>,
external-runtime-path: <string>,
export-dependency-graph <true or false>,
Expand Down Expand Up @@ -221,25 +221,15 @@ This target does not currently support the `build` target option.
<ShowIf ts py>
This target does not currently support the `build-type` target option.
</ShowIf>
<ShowIf rs>
This parameter works with `cargo` to specify how to compile the code. The following options are supported:

- `Release`: Optimization is turned on and debug information is missing.
- `Debug`: Debug information is included in the executable.
- `RelWithDebInfo`: Optimization with debug information.
- `MinSizeRel`: Optimize for smallest size.

This defaults to `Release`.
</ShowIf>
<ShowIf c cpp>
This parameter works with `cmake` to specify how to compile the code. The following options are supported:
<ShowIf rs c cpp>
This parameter specifies how to compile the code. The following options are supported:

- `Release`: Optimization is turned on and debug information is missing.
- `Debug`: Debug information is included in the executable.
- `Debug`: Optimization is disabled and debug information is included in the executable.
- `Release`: Optimization is enabled and debug information is missing.
- `RelWithDebInfo`: Optimization with debug information.
- `MinSizeRel`: Optimize for smallest size.

This defaults to `Release`.
This defaults to `Debug`.
</ShowIf>
</ShowIfs>

Expand Down
26 changes: 8 additions & 18 deletions versioned_docs/version-0.6.0/reference/target-declaration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A target specification may have optional parameters, the names and values of whi

- [**auth**](#auth): A boolean specifying to apply authorization between RTI and federates when federated execution.
- [**build**](#build): A command to execute after code generation instead of the default compile command.
- [**build-type**](#build-type): One of Release (the default), Debug, RelWithDebInfo and MinSizeRel.
- [**build-type**](#build-type): One of Debug (the default), Release, RelWithDebInfo and MinSizeRel.
- [**cargo-dependencies**](#cargo-dependencies): (Rust only) list of dependencies to include in the generated Cargo.toml file.
- [**cargo-features**](#cargo-features): (Rust only) List of string names of features to include.
- [**cmake**](#cmake): Whether to use cmake for building.
Expand Down Expand Up @@ -56,7 +56,7 @@ c={
`target C {
auth: <true or false>
build: <string>,
build-type: <Release, Debug, RelWithDebInfo, or MinSizeRel>,
build-type: <Debug, Release, RelWithDebInfo, or MinSizeRel>,
cmake: <true or false>,
cmake-include: <string or list of strings>,
compiler: <string>,
Expand All @@ -74,7 +74,7 @@ c={
}
cpp={
`target Cpp {
build-type: <Release, Debug, RelWithDebInfo, or MinSizeRel>,
build-type: <Debug, Release, RelWithDebInfo, or MinSizeRel>,
cmake-include: <string or list of strings>,
external-runtime-path: <string>,
export-dependency-graph <true or false>,
Expand Down Expand Up @@ -221,25 +221,15 @@ This target does not currently support the `build` target option.
<ShowIf ts py>
This target does not currently support the `build-type` target option.
</ShowIf>
<ShowIf rs>
This parameter works with `cargo` to specify how to compile the code. The following options are supported:

- `Release`: Optimization is turned on and debug information is missing.
- `Debug`: Debug information is included in the executable.
- `RelWithDebInfo`: Optimization with debug information.
- `MinSizeRel`: Optimize for smallest size.

This defaults to `Release`.
</ShowIf>
<ShowIf c cpp>
This parameter works with `cmake` to specify how to compile the code. The following options are supported:
<ShowIf rs c cpp>
This parameter specifies how to compile the code. The following options are supported:

- `Release`: Optimization is turned on and debug information is missing.
- `Debug`: Debug information is included in the executable.
- `Debug`: Optimization is disabled and debug information is included in the executable.
- `Release`: Optimization is enabled and debug information is missing.
- `RelWithDebInfo`: Optimization with debug information.
- `MinSizeRel`: Optimize for smallest size.

This defaults to `Release`.
This defaults to `Debug`.
</ShowIf>
</ShowIfs>

Expand Down
Loading