Skip to content

Commit e8527ee

Browse files
kkolur76meta-codesync[bot]
authored andcommitted
Replace os_deps with selects in deps field [10 / ?]
Summary: This diff continues the migration of os_deps to select() patterns in Buck2 files. os_deps uses a tuple format that is being deprecated in favor of the more flexible select() mechanism which allows for better platform-specific dependency management. Files modified (10 files, 15 os_deps): - common/thrift/cpp/server/BUCK (5 os_deps) - folly/memory/BUCK (1 os_deps) - hermetic_infra/fdb/fdb-tool/BUCK (1 os_deps, added as separate select to avoid conflict with existing cpu select) - one_world/cli/health/device/BUCK (1 os_deps) - one_world/devices/BUCK (2 os_deps) - one_world/lib/BUCK (1 os_deps) - one_world/utils/BUCK (1 os_deps) - profilers/jemalloc/BUCK (1 os_deps) - smc/zeus/BUCK (1 os_deps) Reviewed By: dtolnay Differential Revision: D92192606 fbshipit-source-id: 9d23bb836810122c48aa30cebe28ec069a7f128e
1 parent b7cef32 commit e8527ee

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

folly/memory/BUCK

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,12 @@ fbcode_target(
297297
name = "malloc",
298298
srcs = ["Malloc.cpp"],
299299
headers = ["Malloc.h"],
300-
os_deps = [(
301-
"linux",
302-
["third-party//jemalloc:headers"],
303-
)],
300+
deps = select({
301+
"DEFAULT": [],
302+
"ovr_config//os:linux": [
303+
"third-party//jemalloc:headers",
304+
],
305+
}),
304306
exported_deps = [
305307
"//folly:portability",
306308
"//folly/lang:exception",

0 commit comments

Comments
 (0)