From 38b8e91a710b9eeb5bff7873f237c0f2b9e412a3 Mon Sep 17 00:00:00 2001 From: tsai Date: Mon, 19 Feb 2024 20:10:23 +0800 Subject: [PATCH] -D_GLIBCXX_USE_CXX11_ABI=0 --- native/mlir-zig-proj/build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/mlir-zig-proj/build.zig b/native/mlir-zig-proj/build.zig index f65d9d0f3..999c74a25 100644 --- a/native/mlir-zig-proj/build.zig +++ b/native/mlir-zig-proj/build.zig @@ -19,7 +19,7 @@ pub fn build(b: *std.build.Builder) void { .optimize = .ReleaseSmall, .target = target, }); - const cflags = [_][]const u8{ "-std=gnu++20", "-fno-sanitize=undefined" } ++ libs.flags; + const cflags = [_][]const u8{ "-std=gnu++17", "-fno-sanitize=undefined", "-D_GLIBCXX_USE_CXX11_ABI=1" } ++ libs.flags; lib.linkLibCpp(); const cppFiles = .{"mlir-c/lib/CAPI/Beaver.cpp"}; inline for (cppFiles) |f| {