summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-07 06:21:09 +0200
committerGitHub <noreply@github.com>2020-09-06 21:21:09 -0700
commit775363a98002a14c64bdc4f8d591c6f37b1e1604 (patch)
tree8242313bccf7e8ace43d6aae021f3f6613a5d0c2 /auto_update_tests.py
parent8b436ba3046deb69e5b736a6cef003b8b0dde0c0 (diff)
downloadbinaryen-775363a98002a14c64bdc4f8d591c6f37b1e1604.tar.gz
binaryen-775363a98002a14c64bdc4f8d591c6f37b1e1604.tar.bz2
binaryen-775363a98002a14c64bdc4f8d591c6f37b1e1604.zip
Upgrade to C++17 (#3103)
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 7e6ace7b8..465518515 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -56,7 +56,7 @@ def update_example_tests():
'-I' + os.path.join(shared.options.binaryen_root, 'src'), '-g', '-L' + libdir, '-pthread']
print('build: ', ' '.join(extra))
if src.endswith('.cpp'):
- extra += ['-std=c++14']
+ extra += ['-std=c++' + str(shared.cxx_standard)]
print(os.getcwd())
subprocess.check_call(extra)
# Link against the binaryen C library DSO, using rpath
@@ -65,7 +65,7 @@ def update_example_tests():
if os.environ.get('COMPILER_FLAGS'):
for f in os.environ.get('COMPILER_FLAGS').split(' '):
cmd.append(f)
- cmd = [os.environ.get('CXX') or 'g++', '-std=c++14'] + cmd
+ cmd = [os.environ.get('CXX') or 'g++', '-std=c++' + str(shared.cxx_standard)] + cmd
try:
print('link: ', ' '.join(cmd))
subprocess.check_call(cmd)