llvm-config: Set LinkMode in addition to LinkDyLib when using --ignore-llvm
authorDerek Schuff <dschuff@google.com>
Tue, 13 Dec 2016 23:01:53 +0000 (23:01 +0000)
committerDerek Schuff <dschuff@google.com>
Tue, 13 Dec 2016 23:01:53 +0000 (23:01 +0000)
commit7ff587a96dc661258a3ac44c2fc182e7ed9863f8
tree438b7273f0770472c8ef26927b1a8d5ec7b1f3eb
parentf6f82c2cc8a3dc8584cf19e521da93a8d17ba9eb
llvm-config: Set LinkMode in addition to LinkDyLib when using --ignore-llvm

Summary:
LinkDyLib is only used (before arg processing) to set up the default for
LinkMode. So reset LinkMode as well, and process before --link-shared or
--link-static to allow those flags to continue to override it.

Reviewers: beanz

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D27736

llvm-svn: 289608
llvm/tools/llvm-config/llvm-config.cpp