| commit | d86ec30168d945a577a258736dcca0ea8e549588 | [log] [tgz] |
|---|---|---|
| author | Rui Ueyama <ruiu@google.com> | Thu Apr 07 23:51:56 2016 +0000 |
| committer | Rui Ueyama <ruiu@google.com> | Thu Apr 07 23:51:56 2016 +0000 |
| tree | 0220ad05767fe0e88af514dc0385ddf9161d9f49 | |
| parent | 9a2ae85e6726c2bf9495cd72c4fbf95f305524f5 [diff] [blame] |
ELF: Add --build-id=sha1 option. llvm-svn: 265748
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 0f0f771..3188d73 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp
@@ -343,6 +343,8 @@ StringRef S = Arg->getValue(); if (S == "md5") { Config->BuildId = BuildIdKind::Md5; + } else if (S == "sha1") { + Config->BuildId = BuildIdKind::Sha1; } else error("unknown --build-id style: " + S); }