Skip to content

Commit

Permalink
[bazel] Remove terminfo dependency
Browse files Browse the repository at this point in the history
The only enabling configuration of this is irreproducible. Since
terminfo doesn't provide essential functionality, remove it so that all
external dependencies now follow the same config_setting pattern.

This should be an NFC for most setups and all CI setups.

Reviewed By: phosek, MaskRay

Differential Revision: https://reviews.llvm.org/D151006
  • Loading branch information
aaronmondal committed May 22, 2023
1 parent d2fddae commit 7b5d6cd
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 285 deletions.
7 changes: 0 additions & 7 deletions utils/bazel/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure")

llvm_configure(name = "llvm-project")

load("@llvm-raw//utils/bazel:terminfo.bzl", "llvm_terminfo_from_env")

maybe(
llvm_terminfo_from_env,
name = "llvm_terminfo",
)

maybe(
http_archive,
name = "llvm_zlib",
Expand Down
13 changes: 0 additions & 13 deletions utils/bazel/configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"""Helper macros to configure the LLVM overlay project."""

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load(":terminfo.bzl", "llvm_terminfo_disable", "llvm_terminfo_system")

# Directory of overlay files relative to WORKSPACE
DEFAULT_OVERLAY_PATH = "llvm-project-overlay"
Expand Down Expand Up @@ -173,15 +172,3 @@ llvm_configure = repository_rule(
"targets": attr.string_list(default = DEFAULT_TARGETS),
},
)

def llvm_disable_optional_support_deps():
maybe(
llvm_terminfo_disable,
name = "llvm_terminfo",
)

def llvm_use_system_support_deps():
maybe(
llvm_terminfo_system,
name = "llvm_terminfo",
)
5 changes: 0 additions & 5 deletions utils/bazel/deps_impl/BUILD.bazel

This file was deleted.

10 changes: 0 additions & 10 deletions utils/bazel/deps_impl/terminfo_disable.BUILD

This file was deleted.

15 changes: 0 additions & 15 deletions utils/bazel/deps_impl/terminfo_system.BUILD

This file was deleted.

17 changes: 0 additions & 17 deletions utils/bazel/deps_impl/terminfo_test.c

This file was deleted.

5 changes: 0 additions & 5 deletions utils/bazel/examples/http_archive/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,3 @@ http_archive(
load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps")

llvm_configure(name = "llvm-project")

# Disables optional dependencies for Support like zlib and terminfo. You may
# instead want to configure them using the macros in the corresponding bzl
# files.
llvm_disable_optional_support_deps()
5 changes: 0 additions & 5 deletions utils/bazel/examples/submodule/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,3 @@ new_local_repository(
load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps")

llvm_configure(name = "llvm-project")

# Disables optional dependencies for Support like zlib and terminfo. You may
# instead want to configure them using the macros in the corresponding bzl
# files.
llvm_disable_optional_support_deps()
5 changes: 0 additions & 5 deletions utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,6 @@ cc_library(
deps = [
":config",
":Demangle",
# We unconditionally depend on the custom LLVM terminfo wrapper. This
# will be an empty library unless terminfo is enabled, in which case it
# will both provide the necessary dependencies and configuration
# defines.
"@llvm_terminfo//:terminfo",
# We unconditionally depend on the custom LLVM zlib wrapper. This will
# be an empty library unless zlib is enabled, in which case it will
# both provide the necessary dependencies and configuration defines.
Expand Down
203 changes: 0 additions & 203 deletions utils/bazel/terminfo.bzl

This file was deleted.

0 comments on commit 7b5d6cd

Please sign in to comment.