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 dd22234 commit aa88206
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ haskell_library(
"src/Language/Cimple/Tokens.hs",
],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand All @@ -36,6 +37,7 @@ haskell_library(
name = "ast",
srcs = ["src/Language/Cimple/Ast.hs"],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand All @@ -55,6 +57,7 @@ haskell_library(
"src/Language/Cimple/Flatten.hs",
],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand All @@ -79,6 +82,7 @@ haskell_library(
name = "parser",
srcs = [":Parser"],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand Down Expand Up @@ -107,6 +111,7 @@ haskell_library(
name = "comment-parser",
srcs = [":CommentParser"],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand All @@ -133,6 +138,7 @@ haskell_library(
name = "tree-parser",
srcs = [":TreeParser"],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand Down Expand Up @@ -162,6 +168,7 @@ haskell_library(
],
),
src_strip_prefix = "src",
tags = ["no-cross"],
version = "0.0.19",
visibility = ["//visibility:public"],
deps = [
Expand Down
5 changes: 5 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_binary(
name = "cimplefmt",
srcs = ["cimplefmt.hs"],
tags = ["no-cross"],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand All @@ -15,6 +16,7 @@ haskell_binary(
haskell_binary(
name = "dump-ast",
srcs = ["dump-ast.hs"],
tags = ["no-cross"],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand All @@ -26,6 +28,7 @@ haskell_binary(
haskell_binary(
name = "count-tokens",
srcs = ["count-tokens.hs"],
tags = ["no-cross"],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand All @@ -39,6 +42,7 @@ haskell_binary(
haskell_binary(
name = "dump-tokens",
srcs = ["dump-tokens.hs"],
tags = ["no-cross"],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand All @@ -51,6 +55,7 @@ haskell_binary(
haskell_binary(
name = "include-graph",
srcs = ["include-graph.hs"],
tags = ["no-cross"],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand Down

0 comments on commit aa88206

Please sign in to comment.