mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 20:00:12 +01:00
I didn't fully configure the new dependencies correctly or fully get them working with our tooling rigging for compilation databases. - I needed to fix the sha256 of the benchmark. I pasted the wrong one, but didn't test it effectively. - Didn't successfully enable the use of Abseil from GoogleTest (including nice things like its symbolization, etc). Doing this is a bit awkward as it needs to go into our `.bazelrc`, but it works. - Didn't add libraries other that GoogleTest to the compile flags. - Didn't teach the compilation database creation step to cause these external repositories to be linked in and populated nicely. All of these are fixed. As I was making changes to the Python script here, I've added a test to at least type check it and fixed the type errors reported.
19 lines
561 B
Python
19 lines
561 B
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
load("@mypy_integration//:mypy.bzl", "mypy_test")
|
|
|
|
# Note that this Python script is intended to be run directly, and not through
|
|
# Bazel. We have a rule for it so we can type check it.
|
|
py_binary(
|
|
name = "create_compdb",
|
|
srcs = ["create_compdb.py"],
|
|
)
|
|
|
|
mypy_test(
|
|
name = "create_compdb_mypy_test",
|
|
include_imports = True,
|
|
deps = [":create_compdb"],
|
|
)
|