Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment variable APPDATA is not available in linux on default, in… #95

Closed
wants to merge 1 commit into from

Commits on Jul 17, 2023

  1. environment variable APPDATA is not available in linux on default, in…

    …stead use /tmp folder
    
    On most of linux distros, pPath = getenv("APPDATA") is returning null.
    When executing "Strncpy(m_cacheFilePath, pPath, sizeof(m_cacheFilePath));" in "Device::InitOutputPaths()",
    pPath is staying null. Because of that, m_cacheFilePath is receiving null value.  That causes an issue as below.
    
    In llpcCompiler.cpp:459,
    const char *shaderCachePath = cl::ShaderCacheFileDir.c_str();
    
    shaderCachePath is assigned as null which causes empty() to return true. On linux, it enters into llvm_unreachable...
    
    f (cl::ShaderCacheFileDir.empty()) {
    #ifdef WIN_OS
        shaderCachePath = getenv("LOCALAPPDATA");
        assert(shaderCachePath);
    #else
        llvm_unreachable("Should never be called!");
    #endif
      }
    munubaykal authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    f048e2a View commit details
    Browse the repository at this point in the history