summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatherine <whitequark@whitequark.org>2023-02-23 01:46:53 +0000
committerGitHub <noreply@github.com>2023-02-23 01:46:53 +0000
commit0551ef2a68c27010d482b2c14971f9a45ec24be4 (patch)
treeaac5f3082e37534b0d5a04c487749cb36f286b63
parenta8f0ef2368aa56b3ad20a52298a02e63b2a93e2d (diff)
parentf89df8087d76ec666b6b0509614958e3a5f7d4cd (diff)
downloadabc-0551ef2a68c27010d482b2c14971f9a45ec24be4.tar.gz
abc-0551ef2a68c27010d482b2c14971f9a45ec24be4.tar.bz2
abc-0551ef2a68c27010d482b2c14971f9a45ec24be4.zip
Merge pull request #22 from YosysHQ/wasi-Abc_Clock
Add WASI support in Abc_Clock
-rw-r--r--src/misc/util/abc_global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/util/abc_global.h b/src/misc/util/abc_global.h
index 2217bb87..02dfb679 100644
--- a/src/misc/util/abc_global.h
+++ b/src/misc/util/abc_global.h
@@ -334,7 +334,7 @@ static inline abctime Abc_Clock()
#else
#define APPLE_MACH 0
#endif
-#if (defined(LIN) || defined(LIN64)) && !APPLE_MACH && !defined(__MINGW32__)
+#if (defined(LIN) || defined(LIN64)) && !APPLE_MACH && !defined(__MINGW32__) && !defined(__wasm)
struct timespec ts;
if ( clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) < 0 )
return (abctime)-1;