Skip to content

Commit 3c6f012

Browse files
committed
chore: Disable apigen in hs-toxcore-c for now.
The current haskell backend is broken. It'll be rewritten using the new apigen high level parser.
1 parent 8fc1179 commit 3c6f012

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: BUILD.bazel

+12-12
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ load("//tools/project:build_defs.bzl", "project")
44

55
project(license = "gpl3-https")
66

7-
[genrule(
8-
name = "api_" + src[:-2].replace("/", "_"),
9-
srcs = ["//c-toxcore:" + src],
10-
outs = ["src/FFI/%s.hs" % "/".join([mod.capitalize() for mod in src[:-2].split("/")])],
11-
cmd = "$(location //hs-apigen/tools:apigen) -hs $< > $@",
12-
exec_tools = ["//hs-apigen/tools:apigen"],
13-
tags = ["no-cross"],
14-
) for src in [
15-
"tox/tox.h",
16-
]]
7+
#[genrule(
8+
# name = "api_" + src[:-2].replace("/", "_"),
9+
# srcs = ["//c-toxcore:" + src],
10+
# outs = ["src/FFI/%s.hs" % "/".join([mod.capitalize() for mod in src[:-2].split("/")])],
11+
# cmd = "$(location //hs-apigen/tools:apigen) -hs $< > $@",
12+
# exec_tools = ["//hs-apigen/tools:apigen"],
13+
# tags = ["no-cross"],
14+
# ) for src in [
15+
# "tox/tox.h",
16+
# ]]
1717

1818
haskell_library(
1919
name = "hs-toxcore-c",
2020
srcs = glob(
2121
["src/**/*.*hs"],
22-
exclude = ["src/FFI/**"],
22+
#exclude = ["src/FFI/**"],
2323
) + [
24-
":api_tox_tox",
24+
#":api_tox_tox",
2525
],
2626
src_strip_prefix = "src",
2727
tags = ["no-cross"],

0 commit comments

Comments
 (0)