]> granicus.if.org Git - clang/commitdiff
Driver: Update -ccc-install-dir to also set the installed dir. Totally
authorDaniel Dunbar <daniel@zuster.org>
Mon, 23 Aug 2010 20:58:50 +0000 (20:58 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 23 Aug 2010 20:58:50 +0000 (20:58 +0000)
non-obvious.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111838 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index e967cfe7b22d9ce4b192a12aa025af79247aa44d..82f913484f481be82b40a0cec7999793ca25b8c8 100644 (file)
@@ -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);