]> granicus.if.org Git - llvm/commitdiff
[llvm-config] Don't use PATH_MAX
authorKeno Fischer <keno@alumni.harvard.edu>
Thu, 1 Jun 2017 20:51:55 +0000 (20:51 +0000)
committerKeno Fischer <keno@alumni.harvard.edu>
Thu, 1 Jun 2017 20:51:55 +0000 (20:51 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304468 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-config/llvm-config.cpp

index 888da7143c9f2a9ba5761506d64f8daa3fe59a4a..08b096afb052f4746f7cc4cc3087c1f8bd8e67f7 100644 (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;