Skip to content

Commit 055082a

Browse files
authored
Fix create generic array (#3158)
***NO_CI***
1 parent 79cb491 commit 055082a

File tree

352 files changed

+11047
-7735
lines changed

Some content is hidden

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

352 files changed

+11047
-7735
lines changed

.devcontainer/All/Dockerfile.All

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-all:v2.57
1+
FROM ghcr.io/nanoframework/dev-container-all:v3.0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.34
1+
FROM ghcr.io/nanoframework/dev-container-azure-rtos:v3.0
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-chibios:v1.35
1+
FROM ghcr.io/nanoframework/dev-container-chibios:v3.0

.devcontainer/ESP32/Dockerfile.ESP32

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-esp32:v2.37
1+
FROM ghcr.io/nanoframework/dev-container-esp32:v3.0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-freertos-nxp:v1.07
1+
FROM ghcr.io/nanoframework/dev-container-freertos-nxp:v3.0

.devcontainer/TI/Dockerfile.TI

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-ti:v1.27
1+
FROM ghcr.io/nanoframework/dev-container-ti:v3.0

CMake/Modules/AzureRTOS_EFM32GG11_GCC_options.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ macro(nf_set_link_options)
6262

6363
# set optimization linker flags for RELEASE and MinSizeRel
6464
if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
65-
set_property(TARGET ${NFSLO_TARGET} APPEND_STRING PROPERTY LINK_FLAGS " -Os -flto -fuse-linker-plugin ")
65+
set_property(TARGET ${NFSLO_TARGET} APPEND_STRING PROPERTY LINK_FLAGS " -Os")
6666
endif()
6767

6868
# request specs from newlib nano

CMake/Modules/FindNF_CoreCLR.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ set(NF_CoreCLR_SRCS
4949
CLR_RT_HeapBlock_Delegate.cpp
5050
CLR_RT_HeapBlock_Delegate_List.cpp
5151
CLR_RT_HeapBlock_Finalizer.cpp
52+
CLR_RT_HeapBlock_GenericInstance.cpp
5253
CLR_RT_HeapBlock_Lock.cpp
5354
CLR_RT_HeapBlock_LockRequest.cpp
5455
CLR_RT_HeapBlock_Node.cpp
@@ -128,8 +129,7 @@ set(NF_CoreCLR_SRCS
128129

129130
# Runtime.Native
130131
nf_rt_native.cpp
131-
nf_rt_native_nanoFramework_Runtime_Hardware_SystemInfo.cpp
132-
nf_rt_native_nanoFramework_Runtime_Native_GC.cpp
132+
nf_rt_native_nanoFramework_Runtime_Native_SystemInfo.cpp
133133
nf_rt_native_nanoFramework_Runtime_Native_ExecutionConstraint.cpp
134134
nf_rt_native_nanoFramework_Runtime_Native_Power.cpp
135135
nf_rt_native_nanoFramework_Runtime_Native_Rtc_stubs.cpp

CMake/Modules/TI_SimpleLink_CC13X2_GCC_options.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ macro(nf_set_link_options)
5151

5252
# set optimization linker flags for RELEASE and MinSizeRel
5353
if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
54-
set_property(TARGET ${NFSLO_TARGET} APPEND_STRING PROPERTY LINK_FLAGS " -Os -flto -fuse-linker-plugin ")
54+
set_property(TARGET ${NFSLO_TARGET} APPEND_STRING PROPERTY LINK_FLAGS " -Os ")
5555
endif()
5656

5757
# request specs from newlib nano

CMake/binutils.AzureRTOS.cmake

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
#
55

66
include(binutils.common)
7-
# include(ChibiOS_HAL)
87

98
function(nf_set_optimization_options target)
109

1110
target_compile_options(${target} PRIVATE
1211
$<$<CONFIG:Debug>:-Og -ggdb>
13-
$<$<CONFIG:Release>:-O3 -flto>
14-
$<$<CONFIG:MinSizeRel>:-Os -flto>
12+
$<$<CONFIG:Release>:-O3>
13+
$<$<CONFIG:MinSizeRel>:-Os>
1514
$<$<CONFIG:RelWithDebInfo>:-Os -femit-class-debug-always -ggdb>
1615
)
1716

CMake/binutils.TI_SimpleLink.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function(nf_set_optimization_options target)
1313
# debug compile options: -Og (optimize for debugging) and -ggdb (produce debug symbols specifically for gdb)
1414
target_compile_options(${target} PRIVATE
1515
$<$<CONFIG:Debug>:-Og -ggdb>
16-
$<$<CONFIG:Release>:-O3 -flto>
17-
$<$<CONFIG:MinSizeRel>:-Os -flto>
16+
$<$<CONFIG:Release>:-O3>
17+
$<$<CONFIG:MinSizeRel>:-Os>
1818
$<$<CONFIG:RelWithDebInfo>:-Os -ggdb>
1919
)
2020

InteropAssemblies/CLR_RT_InteropAssembliesTable.cpp.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const CLR_RT_NativeAssemblyData *g_CLR_InteropAssembliesNativeData[] =
1919
&g_CLR_AssemblyNative_mscorlib,
2020
&g_CLR_AssemblyNative_nanoFramework_Runtime_Native,
2121
@CLR_RT_NativeAssemblyDataTableEntries@
22-
NULL
22+
nullptr
2323
};
2424

2525
const uint16_t g_CLR_InteropAssembliesCount = (@CLR_RT_NativeAssembliesCount@ + 2);

azure-pipelines-nightly.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -283,18 +283,18 @@ jobs:
283283
NeedsSRECORD: false
284284
CMakePreset: ORGPAL_PALX
285285

286-
ST_NUCLEO64_F091RC:
287-
TargetBoard: ST_NUCLEO64_F091RC
288-
TargetSeries: "stm32f0xx"
289-
BuildOptions:
290-
NeedsDFU: false
291-
NeedsSRECORD: true
292-
CMakePreset: ST_NUCLEO64_F091RC
286+
# ST_NUCLEO64_F091RC:
287+
# TargetBoard: ST_NUCLEO64_F091RC
288+
# TargetSeries: "stm32f0xx"
289+
# BuildOptions:
290+
# NeedsDFU: false
291+
# NeedsSRECORD: true
292+
# CMakePreset: ST_NUCLEO64_F091RC
293293

294294
variables:
295295
DOTNET_NOLOGO: true
296296
# creates a counter and assigns it to the revision variable
297-
REVISION: $[counter('STM32_1_12_4_versioncounter', 0)]
297+
REVISION: $[counter('STM32_2_0_0_versioncounter', 0)]
298298
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
299299
TargetPlatform: "stm32"
300300

@@ -582,7 +582,7 @@ jobs:
582582
variables:
583583
DOTNET_NOLOGO: true
584584
# creates a counter and assigns it to the revision variable
585-
REVISION: $[counter('ESP32_1_12_4_versioncounter', 0)]
585+
REVISION: $[counter('ESP32_2_0_0_versioncounter', 0)]
586586
IDF_PATH: "D:/a/1/s/esp-idf"
587587
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
588588
TargetPlatform: "esp32"
@@ -665,7 +665,7 @@ jobs:
665665
variables:
666666
DOTNET_NOLOGO: true
667667
# creates a counter and assigns it to the revision variable
668-
REVISION: $[counter('TI_1_12_4_versioncounter', 0)]
668+
REVISION: $[counter('TI_2_0_0_versioncounter', 0)]
669669
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
670670
TargetPlatform: "ti_simplelink"
671671

@@ -717,7 +717,7 @@ jobs:
717717

718718
variables:
719719
# creates a counter and assigns it to the revision variable
720-
REVISION: $[counter('AZURERTOS_1_12_4_versioncounter', 0)]
720+
REVISION: $[counter('AZURERTOS_2_0_0_versioncounter', 0)]
721721
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
722722
TargetPlatform: "efm32"
723723

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
steps:
5+
- task: PowerShell@2
6+
displayName: Check MDP for build
7+
condition: ne(variables['System.PullRequest.PullRequestId'], '')
8+
inputs:
9+
failOnStderr: false
10+
targetType: "inline"
11+
script: |
12+
13+
# compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
14+
# 'encoded token' is the Base64 of the string "nfbot:personal-token"
15+
$auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$(GitHubToken)")))"
16+
17+
# find PR
18+
"Getting PR#$env:System_PullRequest_PullRequestNumber details..." | Write-Host -ForegroundColor White -NoNewline
19+
$pr = Invoke-WebRequest "https://api.github.com/repos/$env:Build_Repository_Name/pulls/$env:System_PullRequest_PullRequestNumber" | ConvertFrom-Json
20+
21+
if($($pr.number) -eq "$env:System_PullRequest_PullRequestNumber")
22+
{
23+
'##[command] OK' | Write-Host -ForegroundColor Green
24+
}
25+
26+
# grab PR commit message
27+
$prCommitMessage = $($pr.body)
28+
29+
# look for test prompt in PR commit message
30+
# pattern is "[build with MDP buildId NNN]"
31+
32+
if($prCommitMessage -match "\[build with MDP buildId (\d+)\]")
33+
{
34+
$buildId = $matches[1]
35+
"AZDO build ID found: $buildId" | Write-Host -ForegroundColor White
36+
37+
echo "##vso[task.setvariable variable=MDP_BUILDID]$buildId"
38+
}
39+
else
40+
{
41+
"No build ID found" | Write-Host -ForegroundColor Red
42+
}
43+
env:
44+
GITHUB_TOKEN: $(GitHubToken)
45+
46+
- task: DownloadPipelineArtifact@2
47+
condition: >-
48+
and(
49+
eq(variables['DownloadMDP'], true),
50+
ne(variables['MDP_BUILDID'], '')
51+
)
52+
displayName: Download MDP
53+
inputs:
54+
buildType: specific
55+
project: 'metadata-processor'
56+
definition: '43'
57+
buildVersionToDownload: specific
58+
allowFailedBuilds: true
59+
pipelineId: $(MDP_BUILDID)
60+
artifactName: 'deployables'
61+
targetPath: '$(Pipeline.Workspace)/mdp'
62+
itemPattern: '*.MsBuildTask.dll'
63+
64+
- task: PowerShell@2
65+
condition: >-
66+
and(
67+
succeeded(),
68+
eq(variables['DownloadMDP'], true),
69+
ne(variables['MDP_BUILDID'], '')
70+
)
71+
displayName: Copy MDP to build tool
72+
inputs:
73+
targetType: 'inline'
74+
script: |
75+
# Find which VS version is installed
76+
$VsWherePath = "${env:PROGRAMFILES(X86)}\Microsoft Visual Studio\Installer\vswhere.exe"
77+
78+
Write-Output "VsWherePath is: $VsWherePath"
79+
80+
$VsInstance = & $VsWherePath -latest -property displayName
81+
82+
Write-Output "Latest VS is: $VsInstance"
83+
84+
# copy MDP file to msbuild location
85+
$VsPath = & $VSWherePath -latest -property installationPath
86+
87+
Write-Debug "Copy MDP DLL to msbuild location"
88+
89+
$msbuildPath = $VsPath + "\MSBuild"
90+
91+
$extensionPath = $msbuildPath + "\nanoFramework\v1.0"
92+
93+
Copy-Item -Path "$env:Pipeline_Workspace\mdp\*" -Destination $extensionPath -Force -Verbose

azure-pipelines-templates/publish-cloudsmith.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ steps:
162162
or(
163163
eq(variables['ForceUpload'], true),
164164
and(
165-
eq(variables['Build.SourceBranchName'], 'main'),
165+
or(
166+
eq(variables['Build.SourceBranchName'], 'main'),
167+
eq(variables['Build.SourceBranchName'], 'develop')
168+
),
166169
eq(variables['System.PullRequest.PullRequestId'], '')
167170
)
168171
)

azure-pipelines-templates/publish-nanoclr.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ steps:
5252
or(
5353
eq(variables['ForceUpload'], true),
5454
and(
55-
eq(variables['Build.SourceBranchName'], 'main'),
55+
or(
56+
eq(variables['Build.SourceBranchName'], 'develop'),
57+
eq(variables['Build.SourceBranchName'], 'main')
58+
),
5659
eq(variables['System.PullRequest.PullRequestId'], '')
5760
)
5861
)

0 commit comments

Comments
 (0)