Skip to content

Commit

Permalink
Counterpart fix for #44973 - remove extra "src" folder level
Browse files Browse the repository at this point in the history
As discussed about two weeks back in context of

dotnet#304

this change complements the runtime repo PR

dotnet/runtime#44973

by fixing the correlated code in jitutils dealing with coreclr paths.

Thanks

Tomas
  • Loading branch information
trylek committed Dec 7, 2020
1 parent bd80267 commit 508230a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jit-format/jit-format.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public static int Main(string[] args)
if (config.Filenames.Count() == 0)
{
// add all files to a list of files
foreach (string filename in Directory.GetFiles(Path.Combine(config.CoreCLRRoot, "src", config.SourceDirectory)))
foreach (string filename in Directory.GetFiles(Path.Combine(config.CoreCLRRoot, config.SourceDirectory)))
{
// if it's not a directory, add it to our list
if (!Directory.Exists(filename) && (filename.EndsWith(".cpp") || filename.EndsWith(".h") || filename.EndsWith(".hpp")))
Expand All @@ -424,7 +424,7 @@ public static int Main(string[] args)
string prefix = "";
if (!filename.Contains(config.CoreCLRRoot))
{
prefix = Path.Combine(config.CoreCLRRoot, "src", config.SourceDirectory);
prefix = Path.Combine(config.CoreCLRRoot, config.SourceDirectory);
}

if (File.Exists(Path.Combine(prefix, filename)))
Expand Down

0 comments on commit 508230a

Please sign in to comment.