config.toml.template 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 2022 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. # Suppress x.py warning about configuration changes
  5. changelog-seen = 2
  6. [llvm]
  7. download-ci-llvm = false
  8. # Doesn't affect LLVM build (which we don't do) but rather how rustc_llvm crate
  9. # is linked.
  10. static-libstdcpp = true
  11. [rust]
  12. download-rustc = false
  13. channel = "dev"
  14. description = "$PACKAGE_VERSION chromium"
  15. [build]
  16. # Vendor crates.io dependencies to rust-src/vendor and check they match root
  17. # Cargo.lock. In the future we will probably want to vendor these ourself like
  18. # we do with third_party/rust dependencies. For now, the Rust build script auto
  19. # fetches the dependencies.
  20. #
  21. # This is added now to work around a permissions bug in Rust's bootstrap:
  22. # it fails to run under sudo even if the sudo user is not root, unless sources
  23. # are vendored in tree.
  24. locked-deps = true
  25. # TODO(crbug.com/1342708): fix vendoring and re-enable.
  26. vendor = false
  27. target = ["x86_64-unknown-linux-gnu"]
  28. [install]
  29. prefix = "$INSTALL_DIR"
  30. sysconfdir = "etc"
  31. [target.x86_64-unknown-linux-gnu]
  32. cc = "$LLVM_ROOT/bin/clang"
  33. cxx = "$LLVM_ROOT/bin/clang++"
  34. ar = "$LLVM_ROOT/bin/llvm-ar"
  35. ranlib = "$LLVM_ROOT/bin/llvm-ranlib"
  36. linker = "$LLVM_ROOT/bin/clang"
  37. llvm-config = "$LLVM_ROOT/bin/llvm-config"