File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -101,15 +101,15 @@ fn root_dir() []const u8 {
101
101
102
102
{ //Linux
103
103
//Build for Linux x86_64 with glibc 2.26 (old version specified for compatibility)
104
- InheritedShell ( $ "zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-linux-gnu.2.26 --verbose", SPIRVCrossPath ) . AssertZeroExitCode ( ) ;
104
+ InheritedShell ( $ "zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-linux-gnu.2.16 --verbose", SPIRVCrossPath ) . AssertZeroExitCode ( ) ;
105
105
CopyFile ( SPIRVCrossPath / "zig-out" / "lib" / "libspirv-cross.so" , runtimes / "linux-x64" / "native" / "libspirv-cross.so" , FileExistsPolicy . Overwrite ) ;
106
106
107
107
//Build for Linux x86 with glibc 2.26 (old version specified for compatibility)
108
- InheritedShell ( $ "zig build -Doptimize=ReleaseSmall -Dtarget=x86-linux-gnu.2.26 --verbose", SPIRVCrossPath ) . AssertZeroExitCode ( ) ;
108
+ InheritedShell ( $ "zig build -Doptimize=ReleaseSmall -Dtarget=x86-linux-gnu.2.16 --verbose", SPIRVCrossPath ) . AssertZeroExitCode ( ) ;
109
109
CopyFile ( SPIRVCrossPath / "zig-out" / "lib" / "libspirv-cross.so" , runtimes / "linux-x86" / "native" / "libspirv-cross.so" , FileExistsPolicy . Overwrite ) ;
110
110
111
111
//Build for Linux arm64 with glibc 2.26 (old version specified for compatibility)
112
- InheritedShell ( $ "zig build -Doptimize=ReleaseSmall -Dtarget=aarch64-linux-gnu.2.26 --verbose", SPIRVCrossPath ) . AssertZeroExitCode ( ) ;
112
+ InheritedShell ( $ "zig build -Doptimize=ReleaseSmall -Dtarget=aarch64-linux-gnu.2.16 --verbose", SPIRVCrossPath ) . AssertZeroExitCode ( ) ;
113
113
CopyFile ( SPIRVCrossPath / "zig-out" / "lib" / "libspirv-cross.so" , runtimes / "linux-arm64" / "native" / "libspirv-cross.so" , FileExistsPolicy . Overwrite ) ;
114
114
}
115
115
Original file line number Diff line number Diff line change @@ -64,15 +64,15 @@ pub fn build(b: *std.Build) void {
64
64
65
65
{ //Linux
66
66
//Build for Linux x86_64 with glibc 2.26 (old version specified for compatibility)
67
- InheritedShell ( $ "zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.26 --verbose", SPIRVReflectPath ) . AssertZeroExitCode ( ) ;
67
+ InheritedShell ( $ "zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.16 --verbose", SPIRVReflectPath ) . AssertZeroExitCode ( ) ;
68
68
CopyFile ( SPIRVReflectPath / "zig-out" / "lib" / "libspirv-reflect.so" , runtimes / "linux-x64" / "native" / "libspirv-reflect.so" , FileExistsPolicy . Overwrite ) ;
69
69
70
70
//Build for Linux x86 with glibc 2.26 (old version specified for compatibility)
71
- InheritedShell ( $ "zig build -Doptimize=ReleaseFast -Dtarget=x86-linux-gnu.2.26 --verbose", SPIRVReflectPath ) . AssertZeroExitCode ( ) ;
71
+ InheritedShell ( $ "zig build -Doptimize=ReleaseFast -Dtarget=x86-linux-gnu.2.16 --verbose", SPIRVReflectPath ) . AssertZeroExitCode ( ) ;
72
72
CopyFile ( SPIRVReflectPath / "zig-out" / "lib" / "libspirv-reflect.so" , runtimes / "linux-x86" / "native" / "libspirv-reflect.so" , FileExistsPolicy . Overwrite ) ;
73
73
74
74
//Build for Linux arm64 with glibc 2.26 (old version specified for compatibility)
75
- InheritedShell ( $ "zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.26 --verbose", SPIRVReflectPath ) . AssertZeroExitCode ( ) ;
75
+ InheritedShell ( $ "zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.16 --verbose", SPIRVReflectPath ) . AssertZeroExitCode ( ) ;
76
76
CopyFile ( SPIRVReflectPath / "zig-out" / "lib" / "libspirv-reflect.so" , runtimes / "linux-arm64" / "native" / "libspirv-reflect.so" , FileExistsPolicy . Overwrite ) ;
77
77
}
78
78
Original file line number Diff line number Diff line change @@ -573,15 +573,15 @@ fn root_dir() []const u8 {
573
573
const string optimizeMode = "-Doptimize=ReleaseFast" ;
574
574
575
575
//Build shaderc for Linux x86
576
- InheritedShell ( $ "zig build -Dtarget=x86-linux-gnu { optimizeMode } ", ShadercPath ) . AssertZeroExitCode ( ) ;
576
+ InheritedShell ( $ "zig build -Dtarget=x86-linux-gnu.2.16 { optimizeMode } ", ShadercPath ) . AssertZeroExitCode ( ) ;
577
577
CopyFile ( ShadercPath / "zig-out" / "lib" / $ "lib{ libname } .so", runtimes / "linux-x86" / "native" / $ "lib{ libname } .so", FileExistsPolicy . Overwrite ) ;
578
578
579
579
//Build shaderc for Linux x86_64
580
- InheritedShell ( $ "zig build -Dtarget=x86_64-linux-gnu { optimizeMode } ", ShadercPath ) . AssertZeroExitCode ( ) ;
580
+ InheritedShell ( $ "zig build -Dtarget=x86_64-linux-gnu.2.16 { optimizeMode } ", ShadercPath ) . AssertZeroExitCode ( ) ;
581
581
CopyFile ( ShadercPath / "zig-out" / "lib" / $ "lib{ libname } .so", runtimes / "linux-x64" / "native" / $ "lib{ libname } .so", FileExistsPolicy . Overwrite ) ;
582
582
583
583
//Build shaderc for Linux ARM64
584
- InheritedShell ( $ "zig build -Dtarget=aarch64-linux-gnu { optimizeMode } ", ShadercPath ) . AssertZeroExitCode ( ) ;
584
+ InheritedShell ( $ "zig build -Dtarget=aarch64-linux-gnu.2.16 { optimizeMode } ", ShadercPath ) . AssertZeroExitCode ( ) ;
585
585
CopyFile ( ShadercPath / "zig-out" / "lib" / $ "lib{ libname } .so", runtimes / "linux-arm64" / "native" / $ "lib{ libname } .so", FileExistsPolicy . Overwrite ) ;
586
586
587
587
//Build shaderc for Windows x86
You can’t perform that action at this time.
0 commit comments