carbon_clang_variables.bzl 725 B

1234567891011121314151617181920
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. """A Starlark file exporting detected Carbon toolchain configuration variables.
  5. This file gets processed by a repository rule, substituting the `VARIABLE`s with
  6. values, for example using an invocation of `carbon config`.
  7. """
  8. load(
  9. "@bazel_cc_toolchain//:clang_detected_variables.bzl",
  10. _clang_include_dirs = "clang_include_dirs",
  11. _clang_resource_dir = "clang_resource_dir",
  12. _sysroot_dir = "sysroot_dir",
  13. )
  14. clang_include_dirs = _clang_include_dirs
  15. clang_resource_dir = _clang_resource_dir
  16. clang_sysroot = _sysroot_dir