[clang] [llvm] [driver] Make --version show if assertions, etc. are enabled (PR #87585)

Cassie Jones via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 4 16:57:57 PDT 2024


================
@@ -2734,6 +2734,39 @@ void cl::PrintHelpMessage(bool Hidden, bool Categorized) {
     CommonOptions->CategorizedHiddenPrinter.printHelp();
 }
 
+ArrayRef<StringRef> cl::CompilerBuildConfig = {
----------------
porglezomp wrote:

I footgunned here, this doesn't do lifetime extension so this array is a temporary despite being a global. Making this a function to additionally avoid having a static constructor.

https://github.com/llvm/llvm-project/pull/87585


More information about the cfe-commits mailing list