From e78c6019d1873304e0c544bd7902d1b5a1c55bdf Mon Sep 17 00:00:00 2001 From: zhmt Date: Fri, 7 Feb 2025 15:58:31 +0800 Subject: [PATCH] Update binding_generator.py It should be ok when folds exist. It will fail to build without this patch, in vs code on windows with compiler ( visual studio community 2022 amd 64) . --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index 7cab58b79..599ec13d3 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -285,7 +285,7 @@ def _generate_bindings(api, use_template_get_node, bits="64", precision="single" target_dir = Path(output_dir) / "gen" shutil.rmtree(target_dir, ignore_errors=True) - target_dir.mkdir(parents=True) + target_dir.mkdir(parents=True,exist_ok=True) real_t = "double" if precision == "double" else "float" print("Built-in type config: " + real_t + "_" + bits)