OSDN Git Service

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)
commit38087e591ef8d72685bd6647485ec4cff180954d
treedd81eda2b3a3f68aef3dcbfbdc56a3b6b979f325
parent57d813c8da1808e624995d130a5554cdd17116ff
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289608 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-config/llvm-config.cpp