[PATCH] build: Place cache file in build directory

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Nov 5 15:59:44 UTC 2020


This improves support for the --out option.
---
 wscript | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wscript b/wscript
index 57ec6ff7f7..5f6958dbf3 100755
--- a/wscript
+++ b/wscript
@@ -1135,8 +1135,8 @@ def load_from_yaml(load, ctx, data_by_uid, base, path):
 
 
 def load_items_in_directory(ctx, ctors, path):
-    f = ctx.path.make_node(
-        "build/c4che/" + re.sub(r"[^\w]", "_", path) + ".pickle"
+    f = ctx.bldnode.make_node(
+        "c4che/" + re.sub(r"[^\w]", "_", path) + ".pickle"
     )
     f.parent.mkdir()
     cache_file = f.abspath()
-- 
2.26.2



More information about the devel mailing list