From b7d4bdff56012882fcd5d67b0436e717cdd6b64c Mon Sep 17 00:00:00 2001 From: Will Smith Date: Thu, 26 Oct 2023 23:44:23 -0700 Subject: [PATCH] Build ILLink before building smoke_tests (#94000) --- src/coreclr/scripts/superpmi_collect_setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coreclr/scripts/superpmi_collect_setup.py b/src/coreclr/scripts/superpmi_collect_setup.py index 6e4cacef63e7d..92b0aa46da272 100644 --- a/src/coreclr/scripts/superpmi_collect_setup.py +++ b/src/coreclr/scripts/superpmi_collect_setup.py @@ -561,7 +561,9 @@ def make_readable(folder_name): # Build nativeaot tests if coreclr_args.collection_type == "nativeaot": + build_file = "build.cmd" if is_windows else "build.sh" tests_build_file = "build.cmd" if is_windows else "build.sh" + run_command([os.path.join(source_directory, build_file), "Tools.ILLink", "-arch", arch, "-c", coreclr_args.build_type]) run_command([os.path.join(tests_directory, tests_build_file), "nativeaot", arch, coreclr_args.build_type, "tree", "nativeaot/SmokeTests"], source_directory) # NOTE: we can't use the build machine ".dotnet" to run on all platforms. E.g., the Windows x86 build uses a