# HG changeset patch # User Christian Kamm # Date 1225038665 -3600 # Node ID 50d01791859cdeb53c9ccb716cf45fa95df283b3 # Parent 635f91212b78c23b43d31ac61d7136d4c9df4dac Always add trailing slash to source path for debug info. diff -r 635f91212b78 -r 50d01791859c gen/todebug.cpp --- 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");