From: Daniel Dunbar Date: Mon, 23 Aug 2010 20:58:50 +0000 (+0000) Subject: Driver: Update -ccc-install-dir to also set the installed dir. Totally X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4ab3493bb3048014895cf577a8f27505a83603d;p=clang Driver: Update -ccc-install-dir to also set the installed dir. Totally non-obvious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111838 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index e967cfe7b2..82f913484f 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -240,7 +240,7 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) { if (const Arg *A = Args->getLastArg(options::OPT_ccc_host_triple)) DefaultHostTriple = A->getValue(*Args); if (const Arg *A = Args->getLastArg(options::OPT_ccc_install_dir)) - Dir = A->getValue(*Args); + Dir = InstalledDir = A->getValue(*Args); if (const Arg *A = Args->getLastArg(options::OPT_B)) PrefixDir = A->getValue(*Args);