[rtems commit] build: Place cache file in output directory

Sebastian Huber sebh at rtems.org
Thu Nov 5 17:54:19 UTC 2020


Module:    rtems
Branch:    master
Commit:    6cf0c559dca2532b2ebb1ea7003496e0e75fd0e4
Changeset: http://git.rtems.org/rtems/commit/?id=6cf0c559dca2532b2ebb1ea7003496e0e75fd0e4

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov  5 16:58:36 2020 +0100

build: Place cache file in output directory

This improves support for the --out option.  Previously, the cache file
was placed in the source directory under "build/...".  Now, it is placed
in the output directory, which is "build" by default.  So, if you don't
use the --out option nothing changes.  However, if you use the --out
option, then the cache file is placed under the specified directory.

---

 wscript | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wscript b/wscript
index 57ec6ff..5f6958d 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()



More information about the vc mailing list