[llvm-config] Don't use PATH_MAX

It doesn't exist on Windows. The number we use here doesn't really matter,
the storage will expand automatically but 256 seems like a reasonable default.
Should fix windows buildbots that complained about rL304458.

llvm-svn: 304468
This commit is contained in:
Keno Fischer 2017-06-01 20:51:55 +00:00
parent a3a3fa1cb0
commit f60087bea4

View File

@ -333,7 +333,7 @@ int main(int argc, char **argv) {
} else {
ActivePrefix = CurrentExecPrefix;
ActiveIncludeDir = ActivePrefix + "/include";
SmallString<PATH_MAX> path(StringRef(LLVM_TOOLS_INSTALL_DIR));
SmallString<256> path(StringRef(LLVM_TOOLS_INSTALL_DIR));
sys::fs::make_absolute(ActivePrefix, path);
ActiveBinDir = path.str();
ActiveLibDir = ActivePrefix + "/lib" + LLVM_LIBDIR_SUFFIX;