mirror of
https://github.com/The-OpenROAD-Project/abc.git
synced 2026-03-12 11:26:17 +08:00
Adapted from: - https://github.com/hdl/bazel_rules_hdl/tree/main/dependency_support/edu_berkeley_abc - https://github.com/the-OpenROAD-Project/OpenROAD Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
18 lines
535 B
Python
18 lines
535 B
Python
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) 2025, Precision Innovations Inc.
|
|
|
|
## Fix the compiler version and avoid any local compiler
|
|
bazel_dep(name = "toolchains_llvm", version = "1.5.0")
|
|
|
|
# Configure and register the toolchain.
|
|
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
|
|
llvm.toolchain(
|
|
llvm_version = "20.1.8",
|
|
)
|
|
use_repo(llvm, "llvm_toolchain")
|
|
|
|
# FYI: Comment out on NixOS where you'd like to use the local clang toolchain.
|
|
register_toolchains(
|
|
"@llvm_toolchain//:all",
|
|
)
|