Skip to content

Commit cee9d4e

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

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

crates/swc_node_base/BUILD.bazel

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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]:
11+
# - support target_env = "gnu"
12+
# - build.rs support for tikv-jemalloc-sys, which
13+
# invokes sh + configure + c build
14+
# "@platforms//os:linux": crate_deps([
15+
# "tikv-jemallocator",
16+
# ]),
17+
"//conditions:default": crate_deps([
18+
"mimalloc-rust",
19+
]),
20+
}),
21+
)

0 commit comments

Comments
 (0)