From 604fdeb0977603aa23714eb2016c5125369bdb72 Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Tue, 22 Oct 2024 07:35:16 -0700 Subject: [PATCH] shaderc: surround the linux target with quotes --- build/nuke/Native/Shaderc.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/nuke/Native/Shaderc.cs b/build/nuke/Native/Shaderc.cs index f4e7b738b5..83d89d7622 100644 --- a/build/nuke/Native/Shaderc.cs +++ b/build/nuke/Native/Shaderc.cs @@ -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