mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 06:20:19 +01:00
swr/rast: Fix macOS macro.
Fixes:a25093de71("swr/rast: Implement JIT shader caching to disk") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-By: George Kyriazis <george.kyriazis@intel.com> (cherry picked from commitbb742b6ebf)
This commit is contained in:
parent
9f8e6c1efa
commit
e2f8a6503d
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,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
|
||||
|
|
@ -584,7 +584,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"))) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue