Skip to content
Snippets Groups Projects
Commit a51ef459 authored by Vinson Lee's avatar Vinson Lee Committed by Juan A. Suárez
Browse files

swr/rast: Fix macOS macro.


Fixes: a25093de ("swr/rast: Implement JIT shader caching to disk")
Signed-off-by: default avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: default avatarEric Engestrom <eric.engestrom@imgtec.com>
Reviewed-By: default avatarGeorge Kyriazis <george.kyriazis@intel.com>
(cherry picked from commit bb742b6e)
parent da3d5f4d
No related merge requests found
......@@ -81,7 +81,7 @@
#define JITTER_OUTPUT_DIR SWR_OUTPUT_DIR "\\Jitter"
#endif // _WIN32
#if defined(__APPLE) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__)
#if defined(__APPLE__) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__)
#include <pwd.h>
#include <sys/stat.h>
#endif
......@@ -410,7 +410,7 @@ static inline uint32_t ComputeModuleCRC(const llvm::Module* M)
/// constructor
JitCache::JitCache()
{
#if defined(__APPLE) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__)
#if defined(__APPLE__) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__)
if (strncmp(KNOB_JIT_CACHE_DIR.c_str(), "~/", 2) == 0) {
char *homedir;
if (!(homedir = getenv("HOME"))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment