[clang] [clang] Respect `CLANG_USE_EXPERIMENTAL_CONST_INTERP` (PR #200716)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 08:00:09 PDT 2026
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/200716 at github.com>
================
@@ -6673,8 +6673,15 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
Args.AddLastArg(CmdArgs, options::OPT_fexperimental_library);
- if (Args.hasArg(options::OPT_fexperimental_new_constant_interpreter))
- CmdArgs.push_back("-fexperimental-new-constant-interpreter");
+ if (CLANG_USE_EXPERIMENTAL_CONST_INTERP) {
----------------
tbaederr wrote:
I don't have a strong opinion between `if`, `#if` and `if constexpr`.
https://github.com/llvm/llvm-project/pull/200716
More information about the cfe-commits
mailing list