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.
|
// to repeat simultaneously.
|
||||||
uint32_t seed_nr;
|
uint32_t seed_nr;
|
||||||
if (!seed) {
|
if (!seed) {
|
||||||
|
#if defined(__wasm)
|
||||||
|
seed_nr = 0;
|
||||||
|
#else
|
||||||
seed_nr = getpid();
|
seed_nr = getpid();
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
seed_nr = seed_opt;
|
seed_nr = seed_opt;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue