From 6d727621bdf4a09b3ce3189358e433bc7241728f Mon Sep 17 00:00:00 2001 From: Twice Date: Wed, 15 Nov 2023 22:45:31 +0900 Subject: [PATCH] Make sure the c++ standard is set to 17 (#1093) --- bazel/fury.bzl | 2 +- python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bazel/fury.bzl b/bazel/fury.bzl index 15135cea29..27e98c8398 100644 --- a/bazel/fury.bzl +++ b/bazel/fury.bzl @@ -1 +1 @@ -COPTS = ["-pthread","-std=c++11", "-D_GLIBCXX_USE_CXX11_ABI=0"] +COPTS = ["-pthread","-std=c++17", "-D_GLIBCXX_USE_CXX11_ABI=0"] diff --git a/python/setup.py b/python/setup.py index 3e474ebce0..04553f2dca 100644 --- a/python/setup.py +++ b/python/setup.py @@ -85,7 +85,7 @@ if platform.system() == "Darwin": ext.extra_compile_args.append("-stdlib=libc++") if os.name == "posix": - ext.extra_compile_args.append("-std=c++11") + ext.extra_compile_args.append("-std=c++17") print("ext.extra_compile_args", ext.extra_compile_args) # Avoid weird linker errors or runtime crashes on linux