From c24fddbcabb53a10a5fc20a891001569e036eac5 Mon Sep 17 00:00:00 2001 From: Andy Ayers Date: Wed, 13 May 2020 10:15:39 -0700 Subject: [PATCH] Simplify jit-format's check for the coreclr directory. Don't look for build.cmd or build.sh anymore. --- src/jit-format/jit-format.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jit-format/jit-format.cs b/src/jit-format/jit-format.cs index 357344cc..62f98b50 100644 --- a/src/jit-format/jit-format.cs +++ b/src/jit-format/jit-format.cs @@ -207,7 +207,7 @@ private void validate() // If _rootPath doesn't exist, it is an invalid path _syntaxResult.ReportError("Invalid path to coreclr directory. Specify with --coreclr"); } - else if (!File.Exists(Path.Combine(_rootPath, "build.cmd")) || !File.Exists(Path.Combine(_rootPath, "build.sh")) || !File.Exists(Path.Combine(_rootPath, "clr.featuredefines.props"))) + else if (!File.Exists(Path.Combine(_rootPath, "clr.featuredefines.props"))) { // Doesn't look like the coreclr directory. _syntaxResult.ReportError("Invalid path to coreclr directory. Specify with --coreclr");