Skip to content

Commit

Permalink
pio relative path hack
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Mar 22, 2023
1 parent 5eab3a7 commit a2d6a1b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SCons/Node/FS.py
Original file line number Diff line number Diff line change
Expand Up @@ -3709,8 +3709,12 @@ def get_cachedir_bsig(self):
# Append this node's signature...
sigs.append(self.get_contents_sig())

# ...and it's path
sigs.append(self.get_internal_path())
# ...and it's path, relative to build dir
env = self.get_build_env()
rpath = os.path.relpath(
self.get_internal_path(),
env.subst(env["BUILD_DIR"]))
sigs.append(rpath)

# Merge this all into a single signature
result = self.cachesig = hash_collect(sigs)
Expand Down

0 comments on commit a2d6a1b

Please sign in to comment.