Prevent editor compilation with regex module disabled, which is not supported

This commit is contained in:
PouleyKetchoupp 2019-08-11 19:07:59 +02:00
parent 360fb0ffa8
commit a1a0fb1467
1 changed files with 7 additions and 0 deletions

View File

@ -484,6 +484,13 @@ if selected_platform in platform_list:
if env['minizip']:
env.Append(CPPDEFINES=['MINIZIP_ENABLED'])
editor_module_list = ['regex']
for x in editor_module_list:
if not env['module_' + x + '_enabled']:
if env['tools']:
print("Build option 'module_" + x + "_enabled=no' cannot be used with 'tools=yes' (editor), only with 'tools=no' (export template).")
sys.exit(255)
if not env['verbose']:
methods.no_verbose(sys, env)