File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
utils/bazel/third_party_build Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 11# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
22# See https://llvm.org/LICENSE.txt for license information.
33# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4- load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
54load("@rules_cc//cc:cc_library.bzl", "cc_library")
65
76package(
@@ -10,20 +9,10 @@ package(
109 licenses = ["notice"],
1110)
1211
13- bool_flag(
14- name = "llvm_enable_zstd",
15- build_setting_default = True,
16- )
17-
18- config_setting(
19- name = "llvm_zstd_enabled",
20- flag_values = {":llvm_enable_zstd": "true"},
21- )
22-
2312cc_library(
2413 name = "zstd",
2514 srcs = select({
26- ":llvm_zstd_enabled": glob([
15+ "@llvm-project//third-party :llvm_zstd_enabled": glob([
2716 "lib/common/*.c",
2817 "lib/common/*.h",
2918 "lib/compress/*.c",
@@ -37,15 +26,15 @@ cc_library(
3726 "//conditions:default": [],
3827 }),
3928 hdrs = select({
40- ":llvm_zstd_enabled": [
29+ "@llvm-project//third-party :llvm_zstd_enabled": [
4130 "lib/zdict.h",
4231 "lib/zstd.h",
4332 "lib/zstd_errors.h",
4433 ],
4534 "//conditions:default": [],
4635 }),
4736 defines = select({
48- ":llvm_zstd_enabled": [
37+ "@llvm-project//third-party :llvm_zstd_enabled": [
4938 "LLVM_ENABLE_ZSTD=1",
5039 "ZSTD_MULTITHREAD",
5140 ],
You can’t perform that action at this time.
0 commit comments