[PATCH] Build fix for lib/Support/Path.cpp
dmo2118 at gmail.com
dmo2118 at gmail.com
Sat Feb 8 14:23:18 PST 2014
Was running a MacPorts build of llvm-3.3 on Mac OS X 10.4. It didn't
work: apparently _CS_DARWIN_USER_TEMP_DIR and _CS_DARWIN_USER_CACHE_DIR
aren't on that version of OS X.
Attached is a fix.
Dave Odell
-------------- next part --------------
Index: lib/Support/Path.cpp
===================================================================
--- lib/Support/Path.cpp (revision 201028)
+++ lib/Support/Path.cpp (working copy)
@@ -507,7 +507,7 @@
void system_temp_directory(bool erasedOnReboot, SmallVectorImpl<char> &result) {
result.clear();
-#ifdef __APPLE__
+#if defined _CS_DARWIN_USER_TEMP_DIR && defined _CS_DARWIN_USER_CACHE_DIR
// On Darwin, use DARWIN_USER_TEMP_DIR or DARWIN_USER_CACHE_DIR.
int ConfName = erasedOnReboot? _CS_DARWIN_USER_TEMP_DIR
: _CS_DARWIN_USER_CACHE_DIR;
More information about the llvm-commits
mailing list