Made options optional for cython waftool

This commit is contained in:
Jonathan Bendes 2018-06-26 18:37:19 -04:00 committed by Thomas Nagy
parent 80aba755c1
commit 4b6ea4c7e8
1 changed files with 1 additions and 1 deletions

View File

@ -141,6 +141,6 @@ def configure(ctx):
if not ctx.env.PYTHON:
ctx.fatal('Load the python tool first!')
ctx.find_program('cython', var='CYTHON')
if ctx.options.cython_flags:
if hasattr(ctx.options, 'cython_flags'):
ctx.env.CYTHONFLAGS = ctx.options.cython_flags