about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/cpp_macro_conflict/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/cpp_macro_conflict/BUILD.bazel')
-rw-r--r--third_party/bazel/rules_haskell/tests/cpp_macro_conflict/BUILD.bazel36
1 files changed, 0 insertions, 36 deletions
diff --git a/third_party/bazel/rules_haskell/tests/cpp_macro_conflict/BUILD.bazel b/third_party/bazel/rules_haskell/tests/cpp_macro_conflict/BUILD.bazel
deleted file mode 100644
index af8848a6ee..0000000000
--- a/third_party/bazel/rules_haskell/tests/cpp_macro_conflict/BUILD.bazel
+++ /dev/null
@@ -1,36 +0,0 @@
-load(
-    "@io_tweag_rules_haskell//haskell:haskell.bzl",
-    "haskell_library",
-    "haskell_test",
-)
-
-package(default_testonly = 1)
-
-# empty library with package name "bytestring"
-haskell_library(
-    name = "bytestring",
-    srcs = ["src/BS.hs"],
-    deps = ["//tests/hackage:base"],
-)
-
-# This depends on two packages "bytestring"
-# There should be no CPP macro conflict
-haskell_test(
-    name = "macro_conflict",
-    srcs = ["Main.hs"],
-    compiler_flags = [
-        "-XCPP",
-        "-Werror",
-    ] + select({
-        # clang on darwin fails because of unused command line argument, it fails because of -Werror
-        "@bazel_tools//src/conditions:darwin": [
-            "-optP-Wno-unused-command-line-argument",
-        ],
-        "//conditions:default": [],
-    }),
-    deps = [
-        ":bytestring",
-        "//tests/hackage:base",
-        "//tests/hackage:bytestring",
-    ],
-)