[llvm] r304468 - [llvm-config] Don't use PATH_MAX
Keno Fischer via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 13:51:55 PDT 2017
Author: kfischer
Date: Thu Jun 1 15:51:55 2017
New Revision: 304468
URL: http://llvm.org/viewvc/llvm-project?rev=304468&view=rev
Log:
[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.
Modified:
llvm/trunk/tools/llvm-config/llvm-config.cpp
Modified: llvm/trunk/tools/llvm-config/llvm-config.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/llvm-config.cpp?rev=304468&r1=304467&r2=304468&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config/llvm-config.cpp Thu Jun 1 15:51:55 2017
@@ -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;
More information about the llvm-commits
mailing list