From 9bb2496df55863ff2674ee1e332cc5f60bbc4503 Mon Sep 17 00:00:00 2001 From: TIHan Date: Thu, 26 Oct 2023 16:18:20 -0700 Subject: [PATCH] Build ILLink before building smoke_tests --- 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