Skip to content

Commit 3231850

Browse files
XueSongTapdmah42
andauthored
fix: enable running in WebAssembly without filesystem (#1956)
Co-authored-by: dominic <[email protected]>
1 parent 4995099 commit 3231850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sysinfo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ std::vector<CPUInfo::CacheInfo> GetCacheSizes() {
439439
return GetCacheSizesWindows();
440440
#elif defined(BENCHMARK_OS_QNX)
441441
return GetCacheSizesQNX();
442-
#elif defined(BENCHMARK_OS_QURT)
442+
#elif defined(BENCHMARK_OS_QURT) || defined(__EMSCRIPTEN__)
443443
return std::vector<CPUInfo::CacheInfo>();
444444
#else
445445
return GetCacheSizesFromKVFS();

0 commit comments

Comments
 (0)