Skip to content

Commit

Permalink
chore: Disable targets for cross-compilation.
Browse files Browse the repository at this point in the history
This way we can do bazel build //... when cross-compiling.
  • Loading branch information
iphydf committed Dec 24, 2023
1 parent b221d11 commit 5b9ad24
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ haskell_library(
srcs = glob(["src/**/*.*hs"]),
ghcopts = ["-j4"],
src_strip_prefix = "src",
tags = ["no-cross"],
version = "0.2.12",
visibility = ["//visibility:public"],
deps = [
Expand Down
2 changes: 2 additions & 0 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@rules_haskell//haskell:defs.bzl", "haskell_binary", "haskell_test")
haskell_binary(
name = "toxsave-convert",
srcs = ["toxsave-convert.hs"],
tags = ["no-cross"],
visibility = ["//tools/haskell:__pkg__"],
deps = [
"//hs-toxcore",
Expand All @@ -17,6 +18,7 @@ haskell_test(
name = "toxsave-test",
srcs = ["toxsave-test.hs"],
ghcopts = ["-optl=-fsanitize=address"],
tags = ["no-cross"],
visibility = ["//tools/haskell:__pkg__"],
deps = [
"//c-toxcore",
Expand Down
2 changes: 1 addition & 1 deletion tools/toxsave-convert.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ parse str = maybe


main :: IO ()
main = parse <$> LBS.getContents >>= LBS.putStr
main = LBS.getContents >>= LBS.putStr . parse
1 change: 1 addition & 0 deletions web/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@rules_haskell//haskell:defs.bzl", "haskell_binary")
haskell_binary(
name = "webservice",
srcs = glob(["**/*.hs"]),
tags = ["no-cross"],
visibility = ["//visibility:public"],
deps = [
"//hs-msgpack-binary",
Expand Down

0 comments on commit 5b9ad24

Please sign in to comment.