From f2209704b6524da2c98be911c51c2eb6962395ab Mon Sep 17 00:00:00 2001 From: Jarrett Johnson Date: Tue, 30 Jan 2024 15:06:03 -0500 Subject: [PATCH] Upgrade to C++17 --- INSTALL | 2 +- monkeypatch_distutils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/INSTALL b/INSTALL index 7f0bf59aa..08a6776af 100644 --- a/INSTALL +++ b/INSTALL @@ -7,7 +7,7 @@ See also: http://pymolwiki.org/index.php/Linux_Install REQUIREMENTS - - C++11 compiler (e.g. gcc 4.7+) + - C++17 compiler (e.g. gcc 8+) - Python 3.6+ - Pmw (Python Megawidgets) (optional, for legacy GUI/plugins) https://github.com/schrodinger/pmw-patched diff --git a/monkeypatch_distutils.py b/monkeypatch_distutils.py index 9b9269a2d..f4d88ced8 100644 --- a/monkeypatch_distutils.py +++ b/monkeypatch_distutils.py @@ -147,9 +147,9 @@ def customize_compiler(compiler): cxx_cmd = cxx + ' ' + cxxflags - # C++11 by default + # C++17 by default if '-std=' not in cxx_cmd: - cxx_cmd += ' -std=c++11' + cxx_cmd += ' -std=c++17' compiler.set_executables( compiler_cxx=cxx_cmd,