Skip to content

Commit

Permalink
shaderc: surround the linux target with quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Oct 22, 2024
1 parent 4c5e189 commit 604fdeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/nuke/Native/Shaderc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -588,15 +588,15 @@ pub fn build(b: *std.Build) void {
const string optimizeMode = "-Doptimize=ReleaseFast";

//Build shaderc for Linux x86_64
InheritedShell($"zig build -Dtarget=x86_64-linux-gnu.2.17 {optimizeMode}", ShadercPath).AssertZeroExitCode();
InheritedShell($"zig build \"-Dtarget=x86_64-linux-gnu.2.17\" {optimizeMode}", ShadercPath).AssertZeroExitCode();
CopyFile(ShadercPath / "zig-out" / "lib" / $"lib{libname}.so", runtimes / "linux-x64" / "native" / $"lib{libname}.so", FileExistsPolicy.Overwrite);

//Build shaderc for Linux ARM
InheritedShell($"zig build -Dtarget=arm-linux-gnueabihf.2.17 {optimizeMode}", ShadercPath).AssertZeroExitCode();
InheritedShell($"zig build \"-Dtarget=arm-linux-gnueabihf.2.17\" {optimizeMode}", ShadercPath).AssertZeroExitCode();
CopyFile(ShadercPath / "zig-out" / "lib" / $"lib{libname}.so", runtimes / "linux-arm" / "native" / $"lib{libname}.so", FileExistsPolicy.Overwrite);

//Build shaderc for Linux ARM64
InheritedShell($"zig build -Dtarget=aarch64-linux-gnu.2.17 {optimizeMode}", ShadercPath).AssertZeroExitCode();
InheritedShell($"zig build \"-Dtarget=aarch64-linux-gnu.2.17\" {optimizeMode}", ShadercPath).AssertZeroExitCode();
CopyFile(ShadercPath / "zig-out" / "lib" / $"lib{libname}.so", runtimes / "linux-arm64" / "native" / $"lib{libname}.so", FileExistsPolicy.Overwrite);

//Build shaderc for Windows x86
Expand Down

0 comments on commit 604fdeb

Please sign in to comment.