Skip to content

Conversation

@FrancescoV1985
Copy link

-Documented in CONTRIBUTING.md the role of sysroot and the meaning of different flags combination used in frontend script y.sh
-Updated help output for binary file y (build_system/target/release/y build --help)

@FrancescoV1985
Copy link
Author

Fixes #646

Copy link
Contributor

@antoyo antoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay.
Here's a first review.
Thanks for your work!

@FrancescoV1985
Copy link
Author

Sorry for the delay. Here's a first review. Thanks for your work!

Good points :), thanks!

Copy link
Contributor

@antoyo antoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry again for the long delay.
Thanks for your work!


| Command | Backend Profile | Sysroot Profile | Usage Scenario |
|--------------------------------------------|-------------------------------|----------------------------------|------------------------------------------------------------|
| `./y.sh build` |  dev (optimized + debuginfo) |  X |  Build backend in dev. mode with optimized dependencies without rebuilding sysroot |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove the . (dot) at the end of dev. here and in other places? I find it a bit confusing.


| Command | Backend Profile | Sysroot Profile | Usage Scenario |
|--------------------------------------------|-------------------------------|----------------------------------|------------------------------------------------------------|
| `./y.sh build` |  dev (optimized + debuginfo) |  X |  Build backend in dev. mode with optimized dependencies without rebuilding sysroot |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you write "dev (optimized + debuginfo)" because this is what cargo shows and does it show it because the dependencies are compiled in release mode?
I wonder if this will cause confusion to people: what do you think?
Perhaps we should only write "dev"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another idea could be to specify in a footnote that only the dependencies are compiled with optimizations.

`build` command help:
--sysroot : Build with sysroot"#
--release : Build backend in release mode with optimized dependencies without rebuilding sysroot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove the end since this could rebuild the sysroot if --sysroot is specified:

Suggested change
--release : Build backend in release mode with optimized dependencies without rebuilding sysroot
--release : Build backend in release mode with optimized dependencies

build the sysroot in release mode with optimized dependencies instead of in dev. mode
--release-sysroot : When combined with --sysroot, additionally
build the sysroot in release mode with optimized dependencies.
When combined with --release, it has no effect.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would either remove this line completely or rephrase to:

Suggested change
When combined with --release, it has no effect.
It has no effect if `--sysroot` is not specified.

`build` command help:
--sysroot : Build with sysroot"#
--release : Build backend in release mode with optimized dependencies without rebuilding sysroot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag can also be used for ./y.sh test, so please move it back to config.rs.

--sysroot : Build with sysroot"#
--release : Build backend in release mode with optimized dependencies without rebuilding sysroot
--sysroot : When used on its own, build backend in dev. mode with optimized dependencies
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flag --sysroot-panic-abort should also be documented here instead of in config.rs.

Comment on lines +28 to +29


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please merge these 2 empty lines into one:

Suggested change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants