Skip to content

Commit f184329

Browse files
namanahujafacebook-github-bot
authored andcommitted
Update headers for folly-config.h path
Summary: X-link: facebookexperimental/rust-shed#55 We need this change for build fizz Reviewed By: bigfootjon Differential Revision: D58119016 fbshipit-source-id: 16d1c0b2e873cd8d460caca311034516575374f1
1 parent 7eafa2b commit f184329

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shim/shims.bzl

+4
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ def cpp_library(
142142
deps += _select_os_deps(_fix_dict_deps(os_deps))
143143
if headers == None:
144144
headers = []
145+
if tags != None and "oss_dependency" in tags:
146+
oss_depends_on_folly = read_config("oss_depends_on", "folly", False)
147+
if oss_depends_on_folly:
148+
headers = [item.replace("//:", "//folly:") if item == "//:folly-config.h" else item for item in headers]
145149
if is_select(srcs) and auto_headers == AutoHeaders.SOURCES:
146150
# Validate `srcs` and `auto_headers` before the config check
147151
base_path = native.package_name()

0 commit comments

Comments
 (0)