diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-09-07 06:21:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 21:21:09 -0700 |
commit | 775363a98002a14c64bdc4f8d591c6f37b1e1604 (patch) | |
tree | 8242313bccf7e8ace43d6aae021f3f6613a5d0c2 /auto_update_tests.py | |
parent | 8b436ba3046deb69e5b736a6cef003b8b0dde0c0 (diff) | |
download | binaryen-775363a98002a14c64bdc4f8d591c6f37b1e1604.tar.gz binaryen-775363a98002a14c64bdc4f8d591c6f37b1e1604.tar.bz2 binaryen-775363a98002a14c64bdc4f8d591c6f37b1e1604.zip |
Upgrade to C++17 (#3103)
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 4 |
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) |