From 185e84f9f606248ddf2299b65b6ca53d0abb2e7d Mon Sep 17 00:00:00 2001 From: Michael Kuron <mkuron@icp.uni-stuttgart.de> Date: Fri, 19 Feb 2021 10:22:54 +0100 Subject: [PATCH] default to C++17 on macOS and Windows --- pystencils/cpu/cpujit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pystencils/cpu/cpujit.py b/pystencils/cpu/cpujit.py index 84908dcb2..f5f8f63c1 100644 --- a/pystencils/cpu/cpujit.py +++ b/pystencils/cpu/cpujit.py @@ -160,7 +160,7 @@ def read_config(): ('msvc_version', 'latest'), ('llc_command', get_llc_command() or 'llc'), ('arch', 'x64'), - ('flags', '/Ox /fp:fast /OpenMP /arch:avx'), + ('flags', '/Ox /fp:fast /OpenMP /arch:avx /std:c++17'), ('restrict_qualifier', '__restrict') ]) elif platform.system().lower() == 'darwin': @@ -168,7 +168,7 @@ def read_config(): ('os', 'darwin'), ('command', 'clang++'), ('llc_command', get_llc_command() or 'llc'), - ('flags', '-Ofast -DNDEBUG -fPIC -march=native -Xclang -fopenmp -std=c++11'), + ('flags', '-Ofast -DNDEBUG -fPIC -march=native -Xclang -fopenmp -std=c++17'), ('restrict_qualifier', '__restrict__') ]) default_cache_config = OrderedDict([ -- GitLab