Skip to content

Commit 22b8bb9

Browse files
committed
build(bazel): swc_node_base
1 parent b87617f commit 22b8bb9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

crates/swc_node_base/BUILD.bazel

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
load("@swc_cargo_workspace_index//:defs.bzl", "crate_deps")
2+
load("@rules_rust//rust:defs.bzl", "rust_library")
3+
4+
package(default_visibility = ["//visibility:public"])
5+
6+
rust_library(
7+
name = "swc_node_base",
8+
srcs = glob(["src/**/*.rs"]),
9+
deps = select({
10+
# [BAZELTODO]: target_env = "gnu"
11+
"@platforms//os:linux": crate_deps([
12+
"tikv-jemallocator",
13+
]),
14+
"//conditions:default": crate_deps([
15+
"mimalloc-rust",
16+
]),
17+
}),
18+
)

0 commit comments

Comments
 (0)