Merge branch 'clang_detect_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-clang_detect_fix

This commit is contained in:
Wojtek Figat
2023-09-28 11:48:19 +02:00
2 changed files with 5 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ namespace Flax.Build.Platforms
Compiler = Configuration.Compiler;
else
{
for (int ver = 15; ver >= 6; ver--)
for (int ver = 17; ver >= 6; ver--)
{
var compiler = "clang++-" + ver;
if (Which(compiler) != null)

View File

@@ -68,8 +68,11 @@ namespace Flax.Build.Platforms
string path = proc.StandardOutput.ReadLine();
Log.Verbose(string.Format("which {0} exit code: {1}, result: {2}", name, proc.ExitCode, path));
if (proc.ExitCode == 0 && string.IsNullOrEmpty(proc.StandardError.ReadToEnd()))
if (proc.ExitCode == 0)
{
string err = proc.StandardError.ReadToEnd();
if (!string.IsNullOrEmpty(err))
Log.Verbose(string.Format("which stderr: {0}", err));
return path;
}