diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2022-12-21 16:13:08 +1000 |
---|---|---|
committer | YRabbit <rabbit@yrabbit.cyou> | 2022-12-21 16:13:08 +1000 |
commit | d6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53 (patch) | |
tree | ca5cfbeec3e265a7c43654af2089399a020f1cff /gowin/gfx.cc | |
parent | 3ea3a931ca2b9b7228bf241a3fd6cbf861e40696 (diff) | |
download | nextpnr-d6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53.tar.gz nextpnr-d6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53.tar.bz2 nextpnr-d6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53.zip |
gowin: fix build for wasm
A large number of global variables are not suitable for WASM, so
completely disable the graphics part where the main array of them is
used. For other architectures GUI is still possible.
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin/gfx.cc')
-rw-r--r-- | gowin/gfx.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gowin/gfx.cc b/gowin/gfx.cc index 5abb1399..a06df6f8 100644 --- a/gowin/gfx.cc +++ b/gowin/gfx.cc @@ -24,6 +24,7 @@ NEXTPNR_NAMESPACE_BEGIN +#ifndef NO_GUI // LUTs const float lut_w = 0.6732 - 0.6386; const float lut_h = 0.9392 - 0.9074; @@ -5824,5 +5825,6 @@ DecalXY gfxGetCruGroupDecalXY(int x, int y) decalxy.y = y; return decalxy; } +#endif // NO_GUI NEXTPNR_NAMESPACE_END |