Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bazelrc.common
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ startup --host_jvm_args=-Djdk.tls.client.protocols=TLSv1.2

common --incompatible_require_linker_input_cc_api
common --incompatible_disallow_empty_glob=true
common --experimental_cc_shared_library

# test environment does not propagate locales by default some tests reads files
# written in UTF8, we need to propagate the correct environment variables, such
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ generateBazelRc dir = do
\ build:linux-bindist --incompatible_enable_cc_toolchain_resolution \n\
\ build:macos-bindist --incompatible_enable_cc_toolchain_resolution \n\
\ build:windows-bindist --incompatible_enable_cc_toolchain_resolution \n\
\ common --enable_platform_specific_config \n\
\ common --enable_platform_specific_config --experimental_cc_shared_library \n\
\ common:macos --repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 \n\
\ common:windows --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 \n\
\ ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ load(
"haskell_library",
"haskell_toolchain_library",
)
load(":maybe_cc_shared_library.bzl", "maybe_cc_shared_library")

[
haskell_toolchain_library(name = name)
Expand Down Expand Up @@ -43,7 +42,10 @@ cc_library(
visibility = ["//visibility:public"],
)

library_name = maybe_cc_shared_library(name = "ourclibrary")
cc_shared_library(
name = "ourclibrary_shared",
deps = ["ourclibrary"],
)

config_setting(
name = "nix",
Expand Down Expand Up @@ -75,7 +77,7 @@ haskell_library(
deps = [
":array",
":base",
":ourclibrary_shared",
":zlib",
library_name,
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,3 @@ stack_snapshot(
register_toolchains(
":c2hs-toolchain",
)

http_archive(
name = "bazel_features",
sha256 = "bdc12fcbe6076180d835c9dd5b3685d509966191760a0eb10b276025fcb76158",
strip_prefix = "bazel_features-1.17.0",
url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.17.0/bazel_features-v1.17.0.tar.gz",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

This file was deleted.