Skip to content

Commit c45c326

Browse files
mochalinsjinzhongjia
authored andcommitted
fix: Windows release mode compilation
1 parent 9980a9e commit c45c326

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

build.zig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub const V0_12 = struct {
102102
});
103103

104104
// basical flags for civetweb
105-
const basic_flags = [_][]const u8{ "-DNDEBUG", "-DNO_CACHING", "-DNO_CGI", "-DUSE_WEBSOCKET" };
105+
const basic_flags = [_][]const u8{ "-DNDEBUG", "-DNO_CACHING", "-DNO_CGI", "-DUSE_WEBSOCKET", "-Wno-error=date-time" };
106106

107107
// when enable tls
108108
const tls_flags = [_][]const u8{ "-DWEBUI_TLS", "-DNO_SSL_DL", "-DOPENSSL_API_1_1" };
@@ -117,9 +117,6 @@ pub const V0_12 = struct {
117117
try civetweb_flags.appendSlice(&ubsan_flags);
118118
try civetweb_flags.appendSlice(&basic_flags);
119119
try civetweb_flags.appendSlice(if (enable_tls) &tls_flags else &no_tls_flags);
120-
if (target.result.os.tag == .windows) {
121-
try civetweb_flags.append("-DMUST_IMPLEMENT_CLOCK_GETTIME");
122-
}
123120

124121
var webui_flags = std.ArrayList([]const u8).init(b.allocator);
125122
defer webui_flags.deinit();

0 commit comments

Comments
 (0)