Skip to content

Commit 8284a6d

Browse files
authored
Merge pull request #2092 from yowl/NativeAOT-final-merge
NativeAOT-LLVM: Merge up to feature/NativeAOT-final tag
2 parents 30ad0bc + 34f9363 commit 8284a6d

File tree

16,062 files changed

+826683
-298154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

16,062 files changed

+826683
-298154
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true

.config/dotnet-tools.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,22 @@
1515
]
1616
},
1717
"microsoft.dotnet.xharness.cli": {
18-
"version": "1.0.0-prerelease.21465.1",
18+
"version": "1.0.0-prerelease.21602.2",
1919
"commands": [
2020
"xharness"
2121
]
2222
},
2323
"microsoft.visualstudio.slngen.tool": {
24-
"version": "6.1.10",
24+
"version": "6.3.0",
2525
"commands": [
2626
"slngen"
2727
]
28+
},
29+
"dotnet-format": {
30+
"version": "6.0.240501",
31+
"commands": [
32+
"dotnet-format"
33+
]
2834
}
2935
}
3036
}

.devcontainer/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/dotnet/.devcontainer/base.Dockerfile
2+
3+
# [Choice] .NET version: 5.0, 3.1, 2.1
4+
ARG VARIANT="5.0"
5+
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}
6+
7+
# Set up machine requirements to build the repo
8+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9+
&& apt-get -y install --no-install-recommends cmake llvm-9 clang-9 \
10+
build-essential python curl git lldb-6.0 liblldb-6.0-dev \
11+
libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev \
12+
libssl-dev libnuma-dev libkrb5-dev zlib1g-dev ninja-build

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/dotnet
3+
{
4+
"name": "C# (.NET)",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
// Update 'VARIANT' to pick a .NET Core version: 2.1, 3.1, 5.0
9+
"VARIANT": "5.0",
10+
}
11+
},
12+
13+
"settings": {
14+
// Loading projects on demand is better for larger codebases
15+
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
16+
"omnisharp.enableRoslynAnalyzers": true,
17+
"omnisharp.enableEditorConfigSupport": true,
18+
"omnisharp.enableAsyncCompletion": true,
19+
"omnisharp.testRunSettings": "${containerWorkspaceFolder}/artifacts/obj/vscode/.runsettings"
20+
},
21+
22+
// Add the IDs of extensions you want installed when the container is created.
23+
"extensions": [
24+
"ms-dotnettools.csharp"
25+
],
26+
27+
// Use 'onCreateCommand' to run pre-build commands inside the codespace
28+
"onCreateCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/onCreateCommand.sh",
29+
30+
// Use 'postCreateCommand' to run commands after the container is created.
31+
"postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/postCreateCommand.sh",
32+
33+
// Add the locally installed dotnet to the path to ensure that it is activated
34+
// This allows developers to just use 'dotnet build' on the command-line, and the local dotnet version will be used.
35+
"remoteEnv": {
36+
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
37+
"DOTNET_MULTILEVEL_LOOKUP": "0"
38+
},
39+
40+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
41+
"remoteUser": "vscode"
42+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
# prebuild the repo, so it is ready for development
6+
./build.sh libs+clr -rc Release
7+
# restore libs tests so that the project is ready to be loaded by OmniSharp
8+
./build.sh libs.tests -restore
9+
10+
# save the commit hash of the currently built assemblies, so developers know which version was built
11+
git rev-parse HEAD > ./artifacts/prebuild.sha
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
# reset the repo to the commit hash that was used to build the prebuilt Codespace
6+
git reset --hard $(cat ./artifacts/prebuild.sha)

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,4 @@ indent_size = 2
190190
end_of_line = lf
191191
[*.{cmd,bat}]
192192
end_of_line = crlf
193+

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ src/tests/JIT/Performance/CodeQuality/BenchmarksGame/reverse-complement/revcomp-
7575
src/tests/JIT/Performance/CodeQuality/BenchmarksGame/reverse-complement/revcomp-input25000.txt text eol=lf
7676
src/tests/JIT/Performance/CodeQuality/BenchmarksGame/k-nucleotide/knucleotide-input.txt text eol=lf
7777
src/tests/JIT/Performance/CodeQuality/BenchmarksGame/k-nucleotide/knucleotide-input-big.txt text eol=lf
78+
src/mono/wasm/runtime/dotnet.d.ts text eol=lf

.github/ISSUE_TEMPLATE/01_bug_report.md

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
labels: []
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
We welcome bug reports! Please see our [contribution guidelines](https://github.com/dotnet/runtime/blob/main/CONTRIBUTING.md#writing-a-good-bug-report) for more information on writing a good bug report. This template will help us gather the information we need to start the triage process.
9+
- type: textarea
10+
id: background
11+
attributes:
12+
label: Description
13+
description: Please share a clear and concise description of the problem.
14+
placeholder: Description
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: repro-steps
19+
attributes:
20+
label: Reproduction Steps
21+
description: |
22+
Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small project, with steps to run it. If possible include text as text rather than screenshots (so it shows up in searches).
23+
placeholder: Minimal Reproduction
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: expected-behavior
28+
attributes:
29+
label: Expected behavior
30+
description: |
31+
Provide a description of the expected behavior.
32+
placeholder: Expected behavior
33+
validations:
34+
required: true
35+
- type: textarea
36+
id: actual-behavior
37+
attributes:
38+
label: Actual behavior
39+
description: |
40+
Provide a description of the actual behavior observed. If applicable please include any error messages, exception stacktraces or memory dumps.
41+
placeholder: Actual behavior
42+
validations:
43+
required: true
44+
- type: textarea
45+
id: regression
46+
attributes:
47+
label: Regression?
48+
description: |
49+
Did this work in a previous build or release of .NET Core, or from .NET Framework? If you can try a previous release or build to find out, that can help us narrow down the problem. If you don't know, that's OK.
50+
placeholder: Regression?
51+
validations:
52+
required: false
53+
- type: textarea
54+
id: known-workarounds
55+
attributes:
56+
label: Known Workarounds
57+
description: |
58+
Please provide a description of any known workarounds.
59+
placeholder: Known Workarounds
60+
validations:
61+
required: false
62+
- type: textarea
63+
id: configuration
64+
attributes:
65+
label: Configuration
66+
description: |
67+
Please provide more information on your .NET configuration:
68+
* Which version of .NET is the code running on?
69+
* What OS and version, and what distro if applicable?
70+
* What is the architecture (x64, x86, ARM, ARM64)?
71+
* Do you know whether it is specific to that configuration?
72+
* If you're using Blazor, which web browser(s) do you see this issue in?
73+
placeholder: Configuration
74+
validations:
75+
required: false
76+
- type: textarea
77+
id: other-info
78+
attributes:
79+
label: Other information
80+
description: |
81+
If you have an idea where the problem might lie, let us know that here. Please include any pointers to code, relevant changes, or related issues you know of.
82+
placeholder: Other information
83+
validations:
84+
required: false

.github/ISSUE_TEMPLATE/02_api_proposal.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ body:
3333
public void Fancy(T item);
3434
}
3535
}
36-
```
36+
```
3737
validations:
3838
required: true
3939
- type: textarea
4040
id: api-usage
4141
attributes:
4242
label: API Usage
4343
description: |
44-
Please provide code examples that highlight how the proposed API additions are meant to be consumed. This will help suggest whether the API has the right shape to be functional, performant and useable.
44+
Please provide code examples that highlight how the proposed API additions are meant to be consumed. This will help suggest whether the API has the right shape to be functional, performant and usable.
4545
placeholder: API usage
4646
value: |
4747
```C#
@@ -52,9 +52,18 @@ body:
5252
// Getting the values out
5353
foreach (var v in c)
5454
Console.WriteLine(v);
55-
```
55+
```
5656
validations:
5757
required: true
58+
- type: textarea
59+
id: alternative-designs
60+
attributes:
61+
label: Alternative Designs
62+
description: |
63+
Please provide alternative designs. This might not be APIs; for example instead of providing new APIs an option might be to change the behavior of an existing API.
64+
placeholder: Alternative designs
65+
validations:
66+
required: false
5867
- type: textarea
5968
id: risks
6069
attributes:

0 commit comments

Comments
 (0)