From d6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Wed, 21 Dec 2022 16:13:08 +1000 Subject: 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 --- gowin/gfx.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gowin/gfx.cc') 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 -- cgit v1.2.3