From cd676809bd41e2f91bcbd23a95a2c3b019929dd5 Mon Sep 17 00:00:00 2001 From: "sean.narenthiran" Date: Sun, 24 May 2020 20:49:33 +0100 Subject: [PATCH] Swap to c++14 as required for PyTorch 1.5, this requires gcc>=4.7 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 9a88e6c7..475ec766 100644 --- a/build.py +++ b/build.py @@ -40,7 +40,7 @@ def compile_test(header, library): return os.system(command) == 0 -compile_args = ['-O3', '-DKENLM_MAX_ORDER=6', '-std=c++11', '-fPIC'] +compile_args = ['-O3', '-DKENLM_MAX_ORDER=6', '-std=c++14', '-fPIC'] ext_libs = [] if compile_test('zlib.h', 'z'): compile_args.append('-DHAVE_ZLIB')