mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:39:47 +00:00
[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:
parent
a3a3fa1cb0
commit
f60087bea4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user