2 Star 0 Fork 0

mirrors_android_source/parking_lot_core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.rs 456 Bytes
一键复制 编辑 原始数据 按行查看 历史
Joel Galenson 提交于 2021-09-23 02:13 +08:00 . Upgrade rust/crates/parking_lot_core to 0.8.5
// Automatically detect tsan in a way that's compatible with both stable (which
// doesn't support sanitizers) and nightly (which does). Works because build
// scripts gets `cfg` info, even if the cfg is unstable.
fn main() {
println!("cargo:rerun-if-changed=build.rs");
let santizer_list = std::env::var("CARGO_CFG_SANITIZE").unwrap_or_default();
if santizer_list.contains("thread") {
println!("cargo:rustc-cfg=tsan_enabled");
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_android_source/parking_lot_core.git
git@gitee.com:mirrors_android_source/parking_lot_core.git
mirrors_android_source
parking_lot_core
parking_lot_core
main

搜索帮助