build: fix build on macos
This commit is contained in:
parent
b682d30e60
commit
75aa43a0da
2 changed files with 4 additions and 7 deletions
|
@ -8,6 +8,8 @@ const cppflags = [_][]const u8{
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-Wextra",
|
"-Wextra",
|
||||||
"-Werror",
|
"-Werror",
|
||||||
|
"-Wpedantic",
|
||||||
|
"-Wno-deprecated-declarations",
|
||||||
"-Wno-unqualified-std-cast-call",
|
"-Wno-unqualified-std-cast-call",
|
||||||
"-Wno-bitwise-instead-of-logical", //for notcurses
|
"-Wno-bitwise-instead-of-logical", //for notcurses
|
||||||
"-fno-sanitize=undefined",
|
"-fno-sanitize=undefined",
|
||||||
|
@ -24,12 +26,7 @@ pub fn build(b: *std.Build) void {
|
||||||
|
|
||||||
const options_mod = options.createModule();
|
const options_mod = options.createModule();
|
||||||
|
|
||||||
const target = b.standardTargetOptions(.{
|
const target = b.standardTargetOptions(.{});
|
||||||
.default_target = if (tracy_enabled)
|
|
||||||
CrossTarget.parse(.{ .arch_os_abi = "native-native-gnu" }) catch unreachable
|
|
||||||
else
|
|
||||||
CrossTarget.parse(.{ .arch_os_abi = "native-native-musl" }) catch unreachable,
|
|
||||||
});
|
|
||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
const mode = .{ .target = target, .optimize = optimize };
|
const mode = .{ .target = target, .optimize = optimize };
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.asio = .{
|
.asio = .{
|
||||||
.url = "https://github.com/kassane/asio/archive/5fc70d29f458f5b596a20bdf3d638294eef91478.tar.gz",
|
.url = "https://github.com/kassane/asio/archive/cfec4608112abd44462afbad427d0f2ca3e30199.tar.gz",
|
||||||
.hash = "1220926d7e934fcb9e4e55f25e24d17613fbe9b145798581e0ae7ea3679b37f4e44d",
|
.hash = "1220926d7e934fcb9e4e55f25e24d17613fbe9b145798581e0ae7ea3679b37f4e44d",
|
||||||
},
|
},
|
||||||
.tracy = .{
|
.tracy = .{
|
||||||
|
|
Loading…
Add table
Reference in a new issue