Commit 351f2efb authored by Armin Rigo's avatar Armin Rigo
Browse files

In non-C++ mode, we need a warning to be turned into an error

parent d0e1c599a102
......@@ -24,6 +24,9 @@ def verify(ffi, module_name, source, *args, **kwds):
if 1: # test the .cpp mode too
kwds.setdefault('source_extension', '.cpp')
source = 'extern "C" {\n%s\n}' % (source,)
else:
kwds['extra_compile_args'] = (kwds.get('extra_compile_args', []) +
['-Werror'])
return recompiler._verify(ffi, module_name, source, *args, **kwds)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment