##// END OF EJS Templates
zstandard: pull in bug fixes from upstream 0.9.1 release (issue5884)...
Gregory Szorc -
r38244:c0081d3e stable
parent child Browse files
Show More
@@ -33,7 +33,7 b" if '--system-zstd' in sys.argv:"
33
33
34 if '--warnings-as-errors' in sys.argv:
34 if '--warnings-as-errors' in sys.argv:
35 WARNINGS_AS_ERRORS = True
35 WARNINGS_AS_ERRORS = True
36 sys.argv.remote('--warning-as-errors')
36 sys.argv.remove('--warning-as-errors')
37
37
38 # Code for obtaining the Extension instance is in its own module to
38 # Code for obtaining the Extension instance is in its own module to
39 # facilitate reuse in other projects.
39 # facilitate reuse in other projects.
@@ -123,6 +123,8 b' def get_c_extension(support_legacy=False'
123 compiler_type = 'unix'
123 compiler_type = 'unix'
124 elif compiler.compiler_type == 'msvc':
124 elif compiler.compiler_type == 'msvc':
125 compiler_type = 'msvc'
125 compiler_type = 'msvc'
126 elif compiler.compiler_type == 'mingw32':
127 compiler_type = 'mingw32'
126 else:
128 else:
127 raise Exception('unhandled compiler type: %s' %
129 raise Exception('unhandled compiler type: %s' %
128 compiler.compiler_type)
130 compiler.compiler_type)
@@ -141,7 +143,7 b' def get_c_extension(support_legacy=False'
141 extra_args.append('-DZSTD_LEGACY_SUPPORT=1')
143 extra_args.append('-DZSTD_LEGACY_SUPPORT=1')
142
144
143 if warnings_as_errors:
145 if warnings_as_errors:
144 if compiler_type == 'unix':
146 if compiler_type in ('unix', 'mingw32'):
145 extra_args.append('-Werror')
147 extra_args.append('-Werror')
146 elif compiler_type == 'msvc':
148 elif compiler_type == 'msvc':
147 extra_args.append('/WX')
149 extra_args.append('/WX')
General Comments 0
You need to be logged in to leave comments. Login now