Skip to content

Commit ce10dbf

Browse files
authored
Add module sv-lang (#6173)
Add new module to BCR: [slang](https://sv-lang.com/) The module itself is called `sv-lang` to avoid conflicts with other tools that may be named `slang` This wraps the slang project with a Bazel build It includes: - Slang C++ Libraries - Binary for the main slang driver - Binaries for the slang tools (slang-tidy, rewriter, ...) - Locally-built Python bindings (pyslang)
1 parent 41dbbe4 commit ce10dbf

File tree

18 files changed

+874
-0
lines changed

18 files changed

+874
-0
lines changed

modules/sv-lang/9.1.0/MODULE.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""https://sv-lang.com/"""
2+
3+
module(
4+
name = "sv-lang",
5+
version = "9.1.0",
6+
bazel_compatibility = [">=7.2.1"],
7+
)
8+
9+
bazel_dep(name = "aspect_bazel_lib", version = "2.21.2")
10+
bazel_dep(name = "aspect_rules_py", version = "1.6.4")
11+
bazel_dep(name = "bazel_skylib", version = "1.8.2")
12+
bazel_dep(name = "boost.unordered", version = "1.87.0")
13+
bazel_dep(name = "fmt", version = "12.0.0")
14+
bazel_dep(name = "platforms", version = "1.0.0")
15+
bazel_dep(name = "pybind11_bazel", version = "2.13.6")
16+
bazel_dep(name = "rules_cc", version = "0.2.9")
17+
bazel_dep(name = "rules_foreign_cc", version = "0.15.1")
18+
bazel_dep(name = "rules_pycross", version = "0.8.0")
19+
bazel_dep(name = "rules_python", version = "1.6.3")

modules/sv-lang/9.1.0/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Slang (sv-lang)
2+
3+
This is a bazel wrapper to build [slang](https://sv-lang.com/).
4+
5+
It includes:
6+
7+
- Slang C++ Libraries
8+
- Binary for the main slang driver
9+
- Binaries for the slang tools (slang-tidy, rewriter, ...)
10+
- Locally-built Python bindings (pyslang)
11+
12+
## Pyslang
13+
14+
Pyslang is available on PyPI, but the option of using a local build is provided
15+
to take advantage of the reproducable hermetic build, and to align the versions
16+
used for Slang and Pyslang in a given repository.
17+
18+
Because we include the Python bindings, we do not use `mimalloc` in the main slang library build as they are incompatible.
19+
20+
21+
## TODO
22+
23+
Desirable future changes to this build include:
24+
25+
- support multithreading in the C++ with `SLANG_USE_THREADS`
26+
- add `.pyi` stubs for the Pythonbindings
27+
- add a method to patch in CPPTRACE with `SLANG_USE_CPPTRACE`

0 commit comments

Comments
 (0)