From f4b0dd9df09b73cd121963d50f042b47c2f4f51c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 21 Jan 2025 08:41:02 +0100 Subject: [PATCH 1/5] Fail tests if LTCG is used #111566 is not the first time we accidentally shipped something built with LTCG. We should ideally not allow merging such code into `main`. --- eng/testing/tests.singlefile.targets | 1 + .../BuildIntegration/Microsoft.NETCore.Native.targets | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/eng/testing/tests.singlefile.targets b/eng/testing/tests.singlefile.targets index be4d606f0891d6..9c5585602da775 100644 --- a/eng/testing/tests.singlefile.targets +++ b/eng/testing/tests.singlefile.targets @@ -28,6 +28,7 @@ $(CoreCLRAotSdkDir) $(NetCoreAppCurrentTestHostSharedFrameworkPath) $(NetCoreAppCurrentTestHostSharedFrameworkPath) + module compiled with /GL found $(NoWarn);IL1005;IL2122;IL3000;IL3001;IL3002;IL3003;IL3050;IL3051;IL3052;IL3053 partial true diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets index 3f156ac50fe48c..75a865664914ac 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets @@ -372,7 +372,10 @@ The .NET Foundation licenses this file to you under the MIT license. - + From 863d7ceccc52e8952dae5a5f40c569c047c36a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 21 Jan 2025 05:15:18 -0800 Subject: [PATCH 2/5] Update IlcCppLinkerCustomWarningRegularExpression value --- eng/testing/tests.singlefile.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/testing/tests.singlefile.targets b/eng/testing/tests.singlefile.targets index 9c5585602da775..e3a37f5b9960ab 100644 --- a/eng/testing/tests.singlefile.targets +++ b/eng/testing/tests.singlefile.targets @@ -28,7 +28,7 @@ $(CoreCLRAotSdkDir) $(NetCoreAppCurrentTestHostSharedFrameworkPath) $(NetCoreAppCurrentTestHostSharedFrameworkPath) - module compiled with /GL found + module compiled with $(NoWarn);IL1005;IL2122;IL3000;IL3001;IL3002;IL3003;IL3050;IL3051;IL3052;IL3053 partial true From a3a7af45e7482baf3a94d64c8007b87185c1fab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 22 Jan 2025 08:52:35 +0100 Subject: [PATCH 3/5] Revert "Update IlcCppLinkerCustomWarningRegularExpression value" This reverts commit 863d7ceccc52e8952dae5a5f40c569c047c36a47. --- eng/testing/tests.singlefile.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/testing/tests.singlefile.targets b/eng/testing/tests.singlefile.targets index e3a37f5b9960ab..9c5585602da775 100644 --- a/eng/testing/tests.singlefile.targets +++ b/eng/testing/tests.singlefile.targets @@ -28,7 +28,7 @@ $(CoreCLRAotSdkDir) $(NetCoreAppCurrentTestHostSharedFrameworkPath) $(NetCoreAppCurrentTestHostSharedFrameworkPath) - module compiled with + module compiled with /GL found $(NoWarn);IL1005;IL2122;IL3000;IL3001;IL3002;IL3003;IL3050;IL3051;IL3052;IL3053 partial true From 1c2c79af7a3ad4f809121a465b6632164454a957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 22 Jan 2025 08:56:43 +0100 Subject: [PATCH 4/5] Update Microsoft.NETCore.Native.targets --- .../BuildIntegration/Microsoft.NETCore.Native.targets | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets index 75a865664914ac..8fa6d714d8bcc6 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets @@ -372,14 +372,11 @@ The .NET Foundation licenses this file to you under the MIT license. - + - + From d7af9ffcb01983dc766cdb6ecc367f500ac2cced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Sun, 2 Feb 2025 22:17:21 -0800 Subject: [PATCH 5/5] Add CustomWarningRegularExpression to Exec commands --- .../BuildIntegration/Microsoft.NETCore.Native.targets | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets index 8fa6d714d8bcc6..16c7fbb4081a9c 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets @@ -372,11 +372,16 @@ The .NET Foundation licenses this file to you under the MIT license. - + - +