Skip to content

Update docs to point to new build scripts - #33325

Merged
jkotas merged 4 commits into
dotnet:masterfrom
nxtn:build-runtime
Mar 25, 2020
Merged

jkotas merged 4 commits into
dotnet:masterfrom
nxtn:build-runtime

Conversation

@nxtn

@nxtn nxtn commented Mar 7, 2020 •

Copy link
Copy Markdown
Contributor

See #32991 for background.

@hoyosjs hoyosjs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is fine, although for inner loop the idea is to try to use the root scripts more. Also, would of help if we add a note stating this will only build the native bits and not perform any crossgen or test/package building as it used to?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To build System.Private.CoreLib, you need to use the root build script now. build-runtime.sh doesn't build corelib.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated. Is --subsetCategory CoreClr unnecessary if --subset CoreLib-NativeCoreLib is specified?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As of now, yes. But it's better to say

./build.(cmd/sh) --subsetCategory CoreClr --subset CoreLib-NativeCoreLib

Someday Mono could decide that CoreLib or NativeCoreLib are name of some subset they use. By specifying subsetCategory you specify the product you are focusing on.

@nxtn nxtn changed the title Update docs to point to build-runtime scripts Update docs to point to new build scripts Mar 10, 2020

```
lgs@ubuntu ~/git/coreclr/ $ build.sh arm debug verbose
lgs@ubuntu ~/git/runtime/ $ ./build.sh --subsetCategory CoreClr --subset CoreLib-NativeCoreLib --arch arm -c debug -v verbose

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can just use a single - everywhere. Also lowercasing everything works as well.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Making these consistent can be a separate PR.

  • The existing docs use a mix of - and --.
  • -subset help lists the names as CamelCased. It makes sense for the docs to match it.

Build using "arm" as the architecture. For example:

C:\runtime> build.cmd -arm -debug
C:\runtime> .\build.cmd -subsetCategory CoreClr -subset Runtime -arch arm -c debug

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
C:\runtime> .\build.cmd -subsetCategory CoreClr -subset Runtime -arch arm -c debug
C:\runtime> build.cmd -subsetCategory CoreClr -subset Runtime -arch arm -c debug

It is unusual to have .\ on Windows.

@nxtn nxtn Mar 25, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well, this is required by PowerShell and accepted by CMD too. @jkotas Thoughts?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should have the docs consistent. There is one outlier in the existing docs that has build.cmd with .\, the rest has it without it.

Prepending .\ is a second nature for Powershell users, not sure whether we need to have it prepended in the docs.

@jkotas
jkotas merged commit 465669d into dotnet:master Mar 25, 2020
@nxtn
nxtn deleted the build-runtime branch March 25, 2020 13:39
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants