diff options
| author | Rémi Verschelde | 2018-05-30 19:11:33 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2018-05-30 19:11:36 +0200 |
| commit | 3334209a732737274a8598191267573fcb989a99 (patch) | |
| tree | 43604e5f97bc11a9ba2c2e8720a49c0a1d6d0c5b /SConstruct | |
| parent | 28fa82c2defacca8ccad5c26022d2eeaee925f4f (diff) | |
| download | godot-3334209a732737274a8598191267573fcb989a99.tar.gz godot-3334209a732737274a8598191267573fcb989a99.tar.zst godot-3334209a732737274a8598191267573fcb989a99.zip | |
Diffstat (limited to 'SConstruct')
| -rw-r--r-- | SConstruct | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 63105bfa8..3056e03d4 100644 --- a/SConstruct +++ b/SConstruct @@ -396,7 +396,17 @@ if selected_platform in platform_list: sys.path.append(tmppath) env.current_module = x import config - if (config.can_build(selected_platform)): + # can_build changed number of arguments between 3.0 (1) and 3.1 (2), + # so try both to preserve compatibility for 3.0 modules + can_build = False + try: + can_build = config.can_build(env, selected_platform) + except TypeError: + print("Warning: module '%s' uses a deprecated `can_build` " + "signature in its config.py file, it should be " + "`can_build(env, platform)`." % x) + can_build = config.can_build(selected_platform) + if (can_build): config.configure(env) env.module_list.append(x) try: |
