From 08b0de365153bcf275a058bb45cfb0395b157f8b Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Thu, 15 Aug 2024 09:53:29 +0100 Subject: [PATCH] Try to fix windows build --- build/BuildWindowsTask.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/BuildWindowsTask.cs b/build/BuildWindowsTask.cs index 57d9d72..69e2988 100644 --- a/build/BuildWindowsTask.cs +++ b/build/BuildWindowsTask.cs @@ -13,10 +13,11 @@ public override void Run(BuildContext context) Directory.CreateDirectory(buildWorkingDir); // Path relative to the buildWorkingDir var cmakeListsPath = System.IO.Path.Combine("..", "crunch", "CMakeLists.txt"); - context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = $"-DSAN=ON {cmakeListsPath}" }); + context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = cmakeListsPath }); context.ReplaceTextInFiles("crunch_build/crunch.vcxproj", "MultiThreadedDLL", "MultiThreaded"); + context.ReplaceTextInFiles("crunch_build/crnlib/crn-obj.vcxproj", "MultiThreadedDLL", "MultiThreaded"); context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "--build . --config release" }); - var files = Directory.GetFiles(System.IO.Path.Combine (buildWorkingDir, "bin", "Release"), "crunch.exe", SearchOption.TopDirectoryOnly); + var files = Directory.GetFiles(System.IO.Path.Combine (buildWorkingDir, "Release"), "crunch.exe", SearchOption.TopDirectoryOnly); context.CopyFile(files[0], $"{context.ArtifactsDir}/crunch.exe"); } } \ No newline at end of file