mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00

Clean up the ci/ directory. This means getting rid of the travis/ path completely and moving the files into sensible subdirectories. Details: - Moves everything under ci/travis into subdirectories, e.g. ci/build, ci/lint, etc. - Minor adjustments to some scripts (variable renames) - Removes the outdated (unused) asan tests
32 lines
1 KiB
Text
32 lines
1 KiB
Text
# Tool for listening on Bazel actions and generate compile commands database.
|
|
#
|
|
# Using Bazel aspect to generate compile commands would be faster. Also Bazel
|
|
# action listeners are deprecated. We can switch to that if a stable solution
|
|
# exists, e.g. https://github.com/grailbio/bazel-compilation-database
|
|
|
|
cc_binary(
|
|
name = "extract_compile_command",
|
|
srcs = ["extract_compile_command.cc"],
|
|
# Build fails on Windows, and not part of Ray either.
|
|
tags = ["manual"],
|
|
deps = [
|
|
"//:extra_actions_cc_proto_lib",
|
|
"@com_google_protobuf//:protobuf",
|
|
"@rapidjson",
|
|
],
|
|
)
|
|
|
|
action_listener(
|
|
name = "compile_command_listener",
|
|
extra_actions = [":compile_command_action"],
|
|
mnemonics = ["CppCompile"],
|
|
)
|
|
|
|
extra_action(
|
|
name = "compile_command_action",
|
|
cmd = "$(location :extract_compile_command) \
|
|
$(EXTRA_ACTION_FILE) \
|
|
$(output $(ACTION_ID).compile_command.json)",
|
|
out_templates = ["$(ACTION_ID).compile_command.json"],
|
|
tools = [":extract_compile_command"],
|
|
)
|