From 96073fe6bc65bdcb89c6d87ec5a0ba8655e7e16e Mon Sep 17 00:00:00 2001
From: lyken <lyken@m-labs.hk>
Date: Mon, 26 Aug 2024 15:19:22 +0800
Subject: [PATCH] core/irrt: use +std=c++20 to compile

To explicitly set the C++ variant and avoid inconsistencies.
---
 nac3core/build.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nac3core/build.rs b/nac3core/build.rs
index f83b7bc7..78c26147 100644
--- a/nac3core/build.rs
+++ b/nac3core/build.rs
@@ -22,6 +22,7 @@ fn main() {
         "--target=wasm32",
         "-x",
         "c++",
+        "-std=c++20",
         "-fno-discard-value-names",
         "-fno-exceptions",
         "-fno-rtti",