From 2902a21ef327df697f23355271041bbc43f59ee7 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 8 Mar 2018 10:39:12 +0000 Subject: [dsymutil] Embed toolchain in dSYM bundle Allow us to embed the (Xcode) toolchain in the dSYM bundle's property list. Differential revision: https://reviews.llvm.org/D44151 llvm-svn: 326994 --- llvm/tools/dsymutil/dsymutil.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'llvm/tools') diff --git a/llvm/tools/dsymutil/dsymutil.cpp b/llvm/tools/dsymutil/dsymutil.cpp index adc2e859438..bbde2094f02 100644 --- a/llvm/tools/dsymutil/dsymutil.cpp +++ b/llvm/tools/dsymutil/dsymutil.cpp @@ -142,6 +142,10 @@ static opt InputIsYAMLDebugMap( static opt Verify("verify", desc("Verify the linked DWARF debug info."), cat(DsymCategory)); +static opt + Toolchain("toolchain", desc("Embed toolchain information in dSYM bundle."), + cat(DsymCategory)); + static bool createPlistFile(llvm::StringRef Bin, llvm::StringRef BundleRoot) { if (NoOutput) return true; @@ -189,8 +193,13 @@ static bool createPlistFile(llvm::StringRef Bin, llvm::StringRef BundleRoot) { << "\t\t" << BI.ShortVersionStr << "\n"; PL << "\t\tCFBundleVersion\n" - << "\t\t" << BI.VersionStr << "\n" - << "\t\n" + << "\t\t" << BI.VersionStr << "\n"; + + if (!Toolchain.empty()) + PL << "\t\tToolchain\n" + << "\t\t" << Toolchain << "\n"; + + PL << "\t\n" << "\n"; PL.close(); -- cgit v1.2.3