Skip to content

Commit

Permalink
Update headers for folly-config.h path
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookexperimental/rust-shed#55

We need this change for build fizz

Reviewed By: bigfootjon

Differential Revision: D58119016

fbshipit-source-id: 16d1c0b2e873cd8d460caca311034516575374f1
  • Loading branch information
namanahuja authored and facebook-github-bot committed Jun 4, 2024
1 parent 7eafa2b commit f184329
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shim/shims.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def cpp_library(
deps += _select_os_deps(_fix_dict_deps(os_deps))
if headers == None:
headers = []
if tags != None and "oss_dependency" in tags:
oss_depends_on_folly = read_config("oss_depends_on", "folly", False)
if oss_depends_on_folly:
headers = [item.replace("//:", "//folly:") if item == "//:folly-config.h" else item for item in headers]
if is_select(srcs) and auto_headers == AutoHeaders.SOURCES:
# Validate `srcs` and `auto_headers` before the config check
base_path = native.package_name()
Expand Down

0 comments on commit f184329

Please sign in to comment.