Make sure to update Target arch if environment changed

Summary: Fixes "target list" for non-android linux platforms (ie gnu, gnueabi)

Reviewers: jasonmolenda, tfiala, clayborg, tberghammer

Subscribers: tberghammer, danalbert, lldb-commits, sas

Differential Revision: http://reviews.llvm.org/D18631

Change by Francis Ricci <fjricci@fb.com>

llvm-svn: 265419
This commit is contained in:
Stephane Sezer 2016-04-05 17:27:52 +00:00
parent 3553c0e5e7
commit 03f650ff14
1 changed files with 1 additions and 1 deletions

View File

@ -1301,7 +1301,7 @@ Target::SetArchitecture (const ArchSpec &arch_spec)
os_ver_changed,
env_changed);
if (!arch_changed && !vendor_changed && !os_changed)
if (!arch_changed && !vendor_changed && !os_changed && !env_changed)
replace_local_arch = false;
}
}