Skip to content

Commit

Permalink
Fix directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Aug 15, 2024
1 parent 1845de1 commit 004dfdb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/BuildLinuxTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public sealed class BuildLinuxTask : FrostingTask<BuildContext>
public override void Run(BuildContext context)
{
var buildWorkingDir = "crunch_build/";
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 = cmakeListsPath });
Expand Down
2 changes: 1 addition & 1 deletion build/BuildMacOSTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public sealed class BuildMacOSTask : FrostingTask<BuildContext>
public override void Run(BuildContext context)
{
var buildWorkingDir = "crunch_build/";
Directory.CreateDirectory(buildWorkingDir);
// Path relative to the buildWorkingDir
var cmakeListsPath = System.IO.Path.Combine("..", "crunch", "CMakeLists.txt");
Directory.CreateDirectory(buildWorkingDir);
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = $"-DCMAKE_OSX_ARCHITECTURES=\"x86_64;arm64\" {cmakeListsPath}" });
context.StartProcess("make", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "" });
var files = Directory.GetFiles(buildWorkingDir, "crunch", SearchOption.TopDirectoryOnly);
Expand Down
1 change: 1 addition & 0 deletions build/BuildWindowsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public sealed class BuildWindowsTask : FrostingTask<BuildContext>
public override void Run(BuildContext context)
{
var buildWorkingDir = "crunch_build/";
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}" });
Expand Down

0 comments on commit 004dfdb

Please sign in to comment.