Skip to content

v0.5.1

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Dec 16:53
· 2 commits to main since this release

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

bazel_dep(name = "rules_d", version = "0.5.1")

d = use_extension("//d:extensions.bzl", "d")
d.toolchain(d_version = "dmd-2.111.0")
use_repo(d, "d_toolchains")

register_toolchains("@d_toolchains//:all")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_d",
    sha256 = "d7583379a2a276ad027bd23c4e805b2174ad2044c83d03b8bc0e98392919dadb",
    strip_prefix = "rules_d-0.5.1",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.5.1/rules_d-v0.5.1.tar.gz",
)

######################
# rules_d setup #
######################
# Fetches the rules_d dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_d//d:repositories.bzl", "d_register_toolchains", "rules_d_dependencies")

rules_d_dependencies()

d_register_toolchains(
    "dmd_toolchain",
    d_version = "dmd-2.111.0",
)

d_register_toolchains(
    "ldc_toolchain",
    d_version = "ldc-1.41.0",
)

What's Changed

  • fix: add phobos -ldl, -lm and -lphtread linker flags by @dcarp in #145

Full Changelog: v0.5.0...v0.5.1