diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-15 18:35:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 18:35:06 +0100 |
commit | d394eaa61f1e05acebc02db8245c79a81f594d6b (patch) | |
tree | 49a2ec5a8b7cba450ecefd824cefffa1c690446e | |
parent | c99c5a1caeafab161daebdde21ccd83ecdc897d5 (diff) | |
parent | 58051c225257bb8c77ae41d4b533612b78105c36 (diff) |
Merge pull request #56812 from MarioLiebisch/fix-non-mono-msvc-projects
VS Projects: Don't include `mono_reg` without its module
-rw-r--r-- | methods.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/methods.py b/methods.py index 3331e159c7..86239e434c 100644 --- a/methods.py +++ b/methods.py @@ -780,9 +780,10 @@ def generate_vs_project(env, num_jobs): env.vs_incs.append(str(header)) module_configs = ModuleConfigs() - import modules.mono.build_scripts.mono_reg_utils as mono_reg if env.get("module_mono_enabled"): + import modules.mono.build_scripts.mono_reg_utils as mono_reg + mono_root = env.get("mono_prefix") or mono_reg.find_mono_root_dir(env["bits"]) if mono_root: module_configs.add_mode( |