1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

Update the built_marker hashing logic only for current project (#3934)

Summary: Pull Request resolved: https://github.com/facebookincubator/velox/pull/3934

Reviewed By: shri-khare

Differential Revision: D42996394

fbshipit-source-id: e4fe54ba6e7f51b4fc640bf80bbb18b257903b1c
This commit is contained in:
Manikandan Somasundaram
2023-02-03 10:43:23 -08:00
committed by Facebook GitHub Bot
parent 5795b3e16f
commit db79e34cc7

View File

@@ -627,8 +627,12 @@ class BuildCmd(ProjectCmdBase):
)
builder.build(install_dirs, reconfigure=reconfigure)
# Update built_marker only if user hasn't built a specific target
if m == manifest and args.cmake_target == "install":
# If we are building the project (not depdendency) and a specific
# cmake_target (not 'install') has been requested, then we don't
# set the built_marker. This allows subsequent runs of getdeps.py
# for the project to run with different cmake_targets to trigger
# cmake
if not (m == manifest and args.cmake_target != "install"):
with open(built_marker, "w") as f:
f.write(project_hash)