diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-08-11 19:07:59 +0200 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-08-11 19:07:59 +0200 |
commit | a1a0fb1467f72c652cacbc77fa7efdb241b8e454 (patch) | |
tree | 6d00b428eafda2eab56ef153070dbc6c81cd7868 /SConstruct | |
parent | 360fb0ffa80d807ae0334a9f4f1c9c4833a383b1 (diff) |
Prevent editor compilation with regex module disabled, which is not supported
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index aa5e3a98c8..128c5b0e92 100644 --- a/SConstruct +++ b/SConstruct @@ -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) |