Skip to content

Commit 979ed64

Browse files
afrindmeta-codesync[bot]
authored andcommitted
Fix getdeps bug when --install-prefix is used
Summary: When --install-prefix is used, the built_marker directory may not exist yet. Add os.makedirs to create the parent directory before writing the marker file. Reviewed By: bigfootjon Differential Revision: D93644233 fbshipit-source-id: fe130a927013c1fbe0c1a87135d96e8a1b152300
1 parent d2c225a commit 979ed64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/fbcode_builder/getdeps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ def run_project_cmd(self, args, loader, manifest):
728728
# cmake
729729
has_built_marker = False
730730
if not (m == manifest and "install" not in cmake_targets):
731+
os.makedirs(os.path.dirname(built_marker), exist_ok=True)
731732
with open(built_marker, "w") as f:
732733
f.write(project_hash)
733734
has_built_marker = True

0 commit comments

Comments
 (0)