# HG changeset patch # User Christian Kamm # Date 1241972076 -7200 # Node ID 2063291126700f7f9f55cfab1b4b2df6b61e71ea # Parent 2e98ddd72fa739195eb2053ec81140f7d1996a7d Fix the ldcbinarypath config file rewriting. diff -r 2e98ddd72fa7 -r 206329112670 gen/configfile.cpp --- a/gen/configfile.cpp Sun May 10 18:03:32 2009 +0200 +++ b/gen/configfile.cpp Sun May 10 18:14:36 2009 +0200 @@ -1,7 +1,7 @@ #include #include #include -#include +#include #include "llvm/System/Path.h" @@ -85,6 +85,9 @@ // handle switches if (root.exists("switches")) { + std::string binpathkey = "%%ldcbinarypath%%"; + std::string binpath = sys::Path::GetMainExecutable(argv0, mainAddr).getDirname(); + libconfig::Setting& arr = cfg->lookup("default.switches"); int len = arr.getLength(); for (int i=0; i