From a3968c6b647e2b90c5f3cad6630c9d54e7504fbd Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Wed, 14 Jan 2026 19:26:21 +0100 Subject: [PATCH] [RF] Don't fall back to default backend for codegen_no_grad if clad=OFF Even if Clad is not enabled, the `codegen_no_grad` backend can still be used to validate the RooFit code generation. Follows up on 359637ff283. --- roofit/roofitcore/src/RooGlobalFunc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roofit/roofitcore/src/RooGlobalFunc.cxx b/roofit/roofitcore/src/RooGlobalFunc.cxx index c4e0bfa49defb..bc0422d3b7d19 100644 --- a/roofit/roofitcore/src/RooGlobalFunc.cxx +++ b/roofit/roofitcore/src/RooGlobalFunc.cxx @@ -563,9 +563,9 @@ RooCmdArg EventRange(Int_t nStart, Int_t nStop) EvalBackend::EvalBackend(EvalBackend::Value value) : RooCmdArg{"EvalBackend", static_cast(value)} { #ifndef ROOFIT_CLAD - if (value == Value::Codegen || value == Value::CodegenNoGrad) { + if (value == Value::Codegen) { oocoutE(nullptr, InputArguments) - << "RooFit was built without clad. Codegen backends are unavailable. Falling back to default.\n"; + << "RooFit was built without clad. The \"codegen\" backend is unavailable. Falling back to default.\n"; setInt(0, static_cast(defaultValue())); } #endif