Skip to content

Commit

Permalink
Try to fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Aug 15, 2024
1 parent 004dfdb commit 08b0de3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/BuildWindowsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

0 comments on commit 08b0de3

Please # to comment.