Add warning about using llvm.ccache and add FIXME note

This commit is contained in:
Jakub Beránek 2025-02-13 09:41:23 +01:00
parent e663819856
commit a1a6fd74d2

View file

@ -962,6 +962,7 @@ define_config! {
tests: Option<bool> = "tests",
enzyme: Option<bool> = "enzyme",
plugins: Option<bool> = "plugins",
// FIXME: Remove this field at Q2 2025, it has been replaced by build.ccache
ccache: Option<StringOrBool> = "ccache",
static_libstdcpp: Option<bool> = "static-libstdcpp",
libzstd: Option<bool> = "libzstd",
@ -2031,6 +2032,10 @@ impl Config {
download_ci_llvm,
build_config,
} = llvm;
if llvm_ccache.is_some() {
eprintln!("Warning: llvm.ccache is deprecated. Use build.ccache instead.");
}
ccache = ccache.or(llvm_ccache);
set(&mut config.ninja_in_file, ninja);
llvm_tests = tests;