[cfe-commits] r145467 - /cfe/trunk/lib/Driver/Tools.cpp
Kostya Serebryany
kcc at google.com
Tue Nov 29 18:02:55 PST 2011
+Daniel Dunbar
On Tue, Nov 29, 2011 at 6:00 PM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:
> Hi Kostya,
>
> > + // LibAsan is "../lib/clang/linux/ArchName/libclang_rt.asan.a
> > + llvm::SmallString<128> LibAsan =
> > + llvm::sys::path::parent_path(StringRef(TC.getDriver().Dir));
> Shouldn't this be relative wrt "resource dir" ?
>
Daniel, did I interpret the path suggested by you correctly?
// LibAsan is "../lib/clang/linux/ArchName/libclang_rt.asan.a
llvm::SmallString<128> LibAsan =
llvm::sys::path::parent_path(StringRef(TC.getDriver().Dir));
llvm::sys::path::append(LibAsan, "lib", "clang", "linux",
TC.getArchName());
llvm::sys::path::append(LibAsan, "libclang_rt.asan.a");
--kcc
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111129/22149ed0/attachment.html>
More information about the cfe-commits
mailing list