Mercurial > projects > ldc
diff gen/todebug.cpp @ 729:50d01791859c
Always add trailing slash to source path for debug info.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 26 Oct 2008 17:31:05 +0100 |
parents | 72ee105be27b |
children | e4e50f4b58cd |
line wrap: on
line diff
--- a/gen/todebug.cpp Sun Oct 26 14:12:03 2008 +0100 +++ b/gen/todebug.cpp Sun Oct 26 17:31:05 2008 +0100 @@ -141,6 +141,8 @@ llvm::sys::Path tmp = llvm::sys::Path::GetCurrentDirectory(); tmp.appendComponent(srcpath); srcpath = tmp.toString(); + if (*srcpath.rbegin() != '/' || *srcpath.rbegin() != '\\') + srcpath = srcpath + '/'; } vals[4] = DtoConstStringPtr(srcpath.c_str(), "llvm.metadata"); vals[5] = DtoConstStringPtr("LDC (http://www.dsource.org/projects/ldc)", "llvm.metadata");