mirror of https://github.com/YosysHQ/icestorm.git
icebram: add WASI platform support.
This commit is contained in:
parent
f8b8ea0f3c
commit
7ed94f5170
|
|
@ -179,7 +179,11 @@ int main(int argc, char **argv)
|
|||
// to repeat simultaneously.
|
||||
uint32_t seed_nr;
|
||||
if (!seed) {
|
||||
#if defined(__wasm)
|
||||
seed_nr = 0;
|
||||
#else
|
||||
seed_nr = getpid();
|
||||
#endif
|
||||
} else {
|
||||
seed_nr = seed_opt;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue