Skip to content

Commit 485f5ed

Browse files
try win32
1 parent f5cfc47 commit 485f5ed

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

raylib/build.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,15 @@ def build_windows():
288288
#define RAYGUI_IMPLEMENTATION
289289
#define RAYGUI_SUPPORT_RICONS
290290
#include "raygui.h"
291-
#define PHYSAC_IMPLEMENTATION
292-
#define PHYSAC_NO_THREADS
293-
#include "physac.h"
294291
"""
292+
293+
if platform.architecture()[0] != "32bit": # Physac wont compile on 32bit windows
294+
ffi_includes += """
295+
#define PHYSAC_IMPLEMENTATION
296+
#define PHYSAC_NO_THREADS
297+
#include "physac.h"
298+
"""
299+
295300
libraries = ['raylib', 'gdi32', 'shell32', 'user32', 'OpenGL32', 'winmm']
296301
if RAYLIB_PLATFORM=="SDL":
297302
libraries += ['SDL2']

0 commit comments

Comments
 (0)