mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
FrontendTool: print the compiler configuration
This adds the compiler configuration to the output similar to clang. This will allow us to identify the compiler build type, e.g. ``` Swift version 6.2-dev (LLVM 47665e034aa6f27, Swift 2b3e5dac59b8632) Target: x86_64-unknown-windows-msvc Build config: +unoptimized,+assertions,+expensive-checks,+asan,+hwasan,+msan,+ubsan ```
This commit is contained in:
@@ -1091,6 +1091,8 @@ static bool printSwiftVersion(const CompilerInvocation &Invocation) {
|
||||
<< '\n';
|
||||
llvm::outs() << "Target: " << Invocation.getLangOptions().Target.str()
|
||||
<< '\n';
|
||||
if (!llvm::cl::getCompilerBuildConfig().empty())
|
||||
llvm::cl::printBuildConfig(llvm::outs());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user