Commit 717d3b1
Add support for building CoreCLR for MacCatalyst/iOS simulator (#109928)
* Make it possible to compile CoreCLR on iOS-like platforms with './build.sh clr+clr.nativeaotlibs+libs+packs -os [iossimulator/maccatalyst/ios] -arch arm64 -cross'
Build the singlefilehost even if we don't currently use it
Make coreclrhost.h compatible v C(not++)
Fix TargetOS::IsMacOS
WIP: AppleAppBuilder support for CoreCLR
Make the sample app working: dotnet publish src/mono/sample/iOS/Program.csproj -c Release /p:TargetOS=iossimulator /p:TargetArchitecture=arm64 /p:AppleAppBuilderRuntime=CoreCLR /p:DeployAndRun=true /p:UseMonoRuntime=false /p:RunAOTCompilation=false /p:MonoForceInterpreter=false
Cleanup
Update src/tasks/AppleAppBuilder/AppleAppBuilder.csproj
Co-authored-by: Adeel Mujahid <[email protected]>
Use sys_icache_invalidate for all iOS-like platforms
Consolidate macOS-only entrypoints in a single #if block
Apply feedback
Fix jitinterface cross-build
Infer AppleAppBuilderRuntime from UseMonoRuntime and UseNativeAOTRuntime
Minor changes to test infrastructure
Add basic documentation
Add nearly complete support for building runtime tests
Fix building seh-unwind with older iOS SDK
Use enum for TargetRuntime in AppleAppBuilder
Fix LibraryBuilder build
Cleanup
Fix after rebase
Revert accidental change
Fix tvOS build
Drop CoreCLR tvOS Simulator support for now
* Fix rpath on MacCatalyst
* Apply suggestions from code review
Co-authored-by: Aaron Robinson <[email protected]>
* Use CORECLR_HOSTING_API_LINKAGE for extern 'C'
* Remove extra #include
* Drop ICU linkage (not needed with Hybrid Globalization)
* Move jit_write_protect_np initialization
* Use __APPLE__ in PAL instead of TARGET_APPLE for consistency
* Revert changes to native libs and exclude singlefilehost
* Revert more singlefilehost changes
* Remove excessive -D_XOPEN_SOURCE
* Fix build with FEATURE_PERFTRACING_STANDALONE_PAL (debug libs)
* Build with FEATURE_STANDALONE_GC=0
* Remove extra NativeDependencies property (bad merge)
* Add back the UseNativeAOTRuntime property to unblock CI
---------
Co-authored-by: Aaron Robinson <[email protected]>
Co-authored-by: Milos Kotlar <[email protected]>1 parent 0a477a8 commit 717d3b1
File tree
55 files changed
+568
-203
lines changed- docs/workflow/building/coreclr
- eng
- src
- coreclr
- .nuget/ILCompiler.Reflection.ReadyToRun.Experimental
- debug/daccess
- dlls
- mscordac
- mscoree/coreclr
- hosts/inc
- inc
- jit
- minipal/Unix
- pal
- inc
- src
- debug
- exception
- include/pal
- map
- misc
- thread
- tools/aot
- ILCompiler.ReadyToRun/ObjectWriter
- crossgen2
- jitinterface
- utilcode
- vm
- amd64
- arm64
- installer/pkg/sfx/Microsoft.NETCore.App
- mono/msbuild/apple/build
- native
- eventpipe
- external
- libunwind_extras
- libs
- tasks
- AppleAppBuilder
- Templates
- LibraryBuilder
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
55 files changed
+568
-203
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | | - | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
246 | | - | |
| 248 | + | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| |||
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
260 | | - | |
261 | 262 | | |
262 | 263 | | |
| 264 | + | |
263 | 265 | | |
264 | | - | |
265 | | - | |
266 | | - | |
| 266 | + | |
| 267 | + | |
267 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | | - | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
| 689 | + | |
690 | 690 | | |
691 | | - | |
| 691 | + | |
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
0 commit comments