From 4fedffe6a1020edfcfa7bef18d21321d4983b3a7 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Mon, 12 Jun 2023 19:44:38 -0600 Subject: [PATCH] attic: Build binding with C++20 We follow `-std=c++2a` in upstream Makefile. --- attic/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attic/build.rs b/attic/build.rs index 75841a2..00e0672 100644 --- a/attic/build.rs +++ b/attic/build.rs @@ -20,7 +20,7 @@ fn build_bridge() { cxx_build::bridge("src/nix_store/bindings/mod.rs") .file("src/nix_store/bindings/nix.cpp") - .flag("-std=c++17") + .flag("-std=c++2a") .flag("-O2") .flag("-include") .flag("nix/config.h")