CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
75 lines
2.1 KiB
Python
75 lines
2.1 KiB
Python
# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
features = ["layering_check"],
|
|
)
|
|
|
|
licenses(["notice"])
|
|
|
|
# TODO: this is a shim to provide Features.inc as needed by Feature.h.
|
|
# Replace this with something that parses Features.inc.in.
|
|
genrule(
|
|
name = "gen_features_inc",
|
|
outs = ["Features.inc"],
|
|
cmd = "\n".join([
|
|
"echo '// IWYU pragma: private, include \"Feature.h\"' >> $@",
|
|
"echo '#define CLANGD_BUILD_XPC 0' >> $@",
|
|
"echo '#define CLANGD_ENABLE_REMOTE 1' >> $@",
|
|
"echo '#define ENABLE_GRPC_REFLECTION 0' >> $@",
|
|
"echo '#define CLANGD_MALLOC_TRIM 0' >> $@",
|
|
"echo '#define CLANGD_TIDY_CHECKS 1' >> $@",
|
|
"echo '#define CLANGD_DECISION_FOREST 1' >> $@",
|
|
]),
|
|
)
|
|
|
|
# TODO: Pick up other files for more complete functionality, to match
|
|
# clangd/CMakeLists.txt. This might look something like
|
|
# glob(["*.cpp", "dir/**/*.cpp", ...]).
|
|
cc_library(
|
|
name = "ClangDaemon",
|
|
srcs = [
|
|
"Feature.cpp",
|
|
"Features.inc",
|
|
"JSONTransport.cpp",
|
|
"Protocol.cpp",
|
|
"URI.cpp",
|
|
"index/SymbolID.cpp",
|
|
"support/Cancellation.cpp",
|
|
"support/Context.cpp",
|
|
"support/Logger.cpp",
|
|
"support/MemoryTree.cpp",
|
|
"support/Shutdown.cpp",
|
|
"support/ThreadCrashReporter.cpp",
|
|
"support/Trace.cpp",
|
|
],
|
|
hdrs = [
|
|
"Feature.h",
|
|
"LSPBinder.h",
|
|
"Protocol.h",
|
|
"Transport.h",
|
|
"URI.h",
|
|
"index/SymbolID.h",
|
|
"support/Cancellation.h",
|
|
"support/Context.h",
|
|
"support/Function.h",
|
|
"support/Logger.h",
|
|
"support/MemoryTree.h",
|
|
"support/Shutdown.h",
|
|
"support/ThreadCrashReporter.h",
|
|
"support/Trace.h",
|
|
],
|
|
includes = ["."],
|
|
deps = [
|
|
"//clang:basic",
|
|
"//clang:index",
|
|
"//llvm:Support",
|
|
"//llvm:TargetParser",
|
|
"//llvm:config",
|
|
],
|
|
)
|