代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/buck2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.
load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary")
load("@fbcode_macros//build_defs/lib:link_styles.bzl", "link_styles")
def buck_rust_binary(**kwargs):
kwargs.setdefault("edition", "2021")
if kwargs.get("link_style") == None:
link_style = link_styles.default()
kwargs["link_style"] = select({
"DEFAULT": link_style,
"ovr_config//os:macos": "static",
})
# JEMalloc is not (yet!) the default on MacOS so add the allocator
# explicitly on all platforms here.
kwargs.setdefault("allocator", "jemalloc")
rust_binary(**kwargs)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。