From 4761c000af618bc3c93c06a118b65aac0380c5e8 Mon Sep 17 00:00:00 2001 From: Manikandan Somasundaram Date: Tue, 24 Jan 2023 16:44:43 -0800 Subject: [PATCH] Update build_marker only if specific cmake-target is not requested (#3788) Summary: Pull Request resolved: https://github.com/facebookincubator/velox/pull/3788 Reviewed By: chadaustin Differential Revision: D42637430 fbshipit-source-id: 6997a537a0f924b068551c244463082b3e105be6 --- build/fbcode_builder/getdeps.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py index c630f45b4..86993e00e 100755 --- a/build/fbcode_builder/getdeps.py +++ b/build/fbcode_builder/getdeps.py @@ -627,8 +627,10 @@ class BuildCmd(ProjectCmdBase): ) builder.build(install_dirs, reconfigure=reconfigure) - with open(built_marker, "w") as f: - f.write(project_hash) + # Update built_marker only if user hasn't built a specific target + if m == manifest and args.cmake_target == "install": + with open(built_marker, "w") as f: + f.write(project_hash) # Only populate the cache from continuous build runs if args.schedule_type == "continuous":