[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 14:44:53 PDT 2024
================
@@ -2002,6 +2002,44 @@ void Driver::PrintVersion(const Compilation &C, raw_ostream &OS) const {
// Print out the install directory.
OS << "InstalledDir: " << Dir << '\n';
+ // Print out build configuration options that impact the compiler's runtime
+ // behavior. Intended for identifying the source of issues when reproducing
+ // changes.
+ std::vector<std::string> BuildOptions = {
----------------
porglezomp wrote:
I moved this to a global variable to support the API, so I think `ArrayRef<StringRef>` ends up being the appropriate type in the end.
https://github.com/llvm/llvm-project/pull/87585
More information about the cfe-commits
mailing list