Repository navigation
Update docs to point to new build scripts - #33325
Conversation
hoyosjs
left a comment
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
To build System.Private.CoreLib, you need to use the root build script now. build-runtime.sh doesn't build corelib.
There was a problem hiding this comment.
Updated. Is --subsetCategory CoreClr unnecessary if --subset CoreLib-NativeCoreLib is specified?
There was a problem hiding this comment.
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.
|
|
||
| ``` | ||
| 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 |
There was a problem hiding this comment.
You can just use a single - everywhere. Also lowercasing everything works as well.
There was a problem hiding this comment.
Making these consistent can be a separate PR.
- The existing docs use a mix of
-and--. -subset helplists 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 |
There was a problem hiding this comment.
| 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.
There was a problem hiding this comment.
Well, this is required by PowerShell and accepted by CMD too. @jkotas Thoughts?
There was a problem hiding this comment.
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.
See #32991 for background.