From 6d54c194772ba5d7f278e71111b8b1723d89310e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Thu, 26 Jan 2023 16:09:47 +0900 Subject: [PATCH 1/7] Switch to selfhosted NativeAOT compiler This will compile the NativeAOT compiler with the LKG build of the NativeAOT compiler that the repo is building with. At this point NativeAOT-compiled compiler is significantly better than the R2R+Trimmed+SingleFile-compiled combo we're shipping right now. ilc.exe size before: 31 MB. ilc.exe size after: 14 MB. Time to compile hello world before: 2.3 seconds. Time to compile hello world after: 1.3 seconds. --- .../tools/aot/ILCompiler/ILCompiler.csproj | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index fb49fd1a3f2c84..cea039e5176bbf 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -10,24 +10,13 @@ $(RuntimeBinDir)ilc-published/ - true - - true - true + true + DependsOnTargets="Publish" /> - - - - - - From d0516268b2e93261e5ef6faa20d6ad99ae199186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 30 Jan 2023 13:02:25 +0900 Subject: [PATCH 2/7] We need R2R sometimes --- .../tools/aot/ILCompiler/ILCompiler.csproj | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index cea039e5176bbf..48cc12179bb681 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -10,13 +10,38 @@ $(RuntimeBinDir)ilc-published/ - true + true + true + true + DependsOnTargets="Publish;StompSingleFileHostPath" /> + + + + + + + + + + clang + + + + + + From 3ed990cee19772bfa7e3fb98a9c3a57113ffd5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 30 Jan 2023 14:55:07 +0900 Subject: [PATCH 3/7] Update ILCompiler.csproj --- .../tools/aot/ILCompiler/ILCompiler.csproj | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index 48cc12179bb681..747ad3d7c8ab02 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -10,6 +10,7 @@ $(RuntimeBinDir)ilc-published/ + false true true true @@ -29,19 +30,4 @@ - - - - clang - - - - - - From b07c6484a1eb60c802eb9bb0e8e8cce69fdbc0a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Fri, 24 Feb 2023 15:13:28 +0900 Subject: [PATCH 4/7] try fixing freebsd --- src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index 747ad3d7c8ab02..7dfa439fdee1cd 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -10,7 +10,7 @@ $(RuntimeBinDir)ilc-published/ - false + false true true true From 6e34224b24b8ecaf54fe6d29f07140ca98106cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 7 Mar 2023 20:08:24 +0900 Subject: [PATCH 5/7] Update ILCompiler.csproj --- src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index 7dfa439fdee1cd..72fc88417a1ec1 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -11,6 +11,7 @@ $(RuntimeBinDir)ilc-published/ false + false true true true From 5bbc2b76e692e592935d1a68108a5f5095b215c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 8 Mar 2023 08:49:42 +0900 Subject: [PATCH 6/7] Update ILCompiler.csproj --- src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index 72fc88417a1ec1..d22ed7449cd377 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -11,7 +11,7 @@ $(RuntimeBinDir)ilc-published/ false - false + false true true true From 3911bb1bf958d7f3400d11c2a50371eb6e174d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Thu, 9 Mar 2023 18:30:24 +0900 Subject: [PATCH 7/7] Apply suggestions from code review --- src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index d22ed7449cd377..db48433db73f85 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -10,11 +10,12 @@ $(RuntimeBinDir)ilc-published/ - false + false false true true true + true