File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 33
33
run : zig fmt --ast-check --check .
34
34
35
35
- name : Build
36
+ if : matrix.os != 'windows-latest'
36
37
run : zig build --summary all
38
+
39
+ - name : Build (windows)
40
+ if : matrix.os == 'windows-latest'
41
+ run : zig build -Diconv=false --summary all
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ pub fn build(b: *std.Build) void {
193
193
if (history ) xml_lib .root_module .linkSystemLibrary ("history" , .{});
194
194
if (lzma ) xml_lib .root_module .linkSystemLibrary ("lzma" , .{});
195
195
if (icu ) xml_lib .root_module .linkSystemLibrary ("icu-i18n" , .{});
196
- // if (iconv) xml_lib.root_module.linkSystemLibrary("iconv", .{});
196
+ if (iconv and target . result . os . tag == .windows ) xml_lib .root_module .linkSystemLibrary ("iconv" , .{});
197
197
if (target .result .os .tag == .windows ) xml_lib .root_module .linkSystemLibrary ("bcrypt" , .{});
198
198
if (http and target .result .os .tag == .windows ) xml_lib .root_module .linkSystemLibrary ("ws2_32" , .{});
199
199
You can’t perform that action at this time.
0 commit comments