rules_d
rules_d copied to clipboard
macOS ARM (M1) support missing
Building a simple hello world example on macOS ARM architecture does not work:
/private/var/tmp/_bazel_vertexwahn/fc20ed30f7a981f06f7341ebc9a872cb/external/io_bazel_rules_d/d/BUILD:23:10: configurable attribute "srcs" in @io_bazel_rules_d//d:dmd doesn't match this configuration. Would a default condition help?
Conditions checked: @io_bazel_rules_d//d:darwin @io_bazel_rules_d//d:k8 @io_bazel_rules_d//d:x64_windows
hello_world.d:
import std.stdio;
void main()
{
writeln("Hello, World!");
}
WORKSPACE.bazel:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_d",
sha256 = "c30aaca512a376058f9295a4d9c2b3a385ad323b6026295a715b48dd53e20520",
strip_prefix = "rules_d-0e23b60794508983f4a2d21137f5299cdaee6ae3",
urls = ["https://github.com/bazelbuild/rules_d/archive/0e23b60794508983f4a2d21137f5299cdaee6ae3.tar.gz"],
)
load("@io_bazel_rules_d//d:d.bzl", "d_repositories")
d_repositories()
BUILD.bazel:
load("@io_bazel_rules_d//d:d.bzl", "d_binary")
d_binary(
name = "hello_world",
srcs = ["hello_world.d"],
)
.bazelversion:
6.3.2