We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9262b1 commit 2450903Copy full SHA for 2450903
src/file.cpp
@@ -54,7 +54,7 @@ inline static std::string wstring_to_string(const std::wstring &wstr)
54
inline static std::string get_cwd_from_env()
55
{
56
char* value = getenv("PWD");
57
- if (!value) return "(unreachable)";
+ if (!value) return "/";
58
return value;
59
}
60
#endif
@@ -68,6 +68,8 @@ namespace Sass {
68
std::string get_cwd()
69
70
#ifdef _WASM
71
+ // the WASI does not implement getcwd() yet --
72
+ // check the environment variables or default to "/".
73
std::string cwd = get_cwd_from_env();
74
#else
75
const size_t wd_len = 4096;
0 commit comments