Skip to content

Commit 1232b70

Browse files
fix clang 16 on mac building
1 parent 43e0492 commit 1232b70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

raylib/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,19 @@ def build_unix():
162162
'-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework',
163163
'CoreVideo']
164164
libraries = []
165+
extra_compile_args = ["-Wno-error=incompatible-function-pointer-types"]
165166
else: #platform.system() == "Linux":
166167
print("BUILDING FOR LINUX")
167168
extra_link_args = get_lib_flags() + [ '-lm', '-lpthread', '-lGL',
168169
'-lrt', '-lm', '-ldl', '-lX11', '-lpthread', '-latomic']
170+
extra_compile_args = []
169171
libraries = ['GL', 'm', 'pthread', 'dl', 'rt', 'X11', 'atomic']
170172

171173
ffibuilder.set_source("raylib._raylib_cffi",
172174
ffi_includes,
173175
include_dirs=[get_the_include_path()],
174176
extra_link_args=extra_link_args,
177+
extra_compile_args=extra_compile_args,
175178
libraries=libraries)
176179

177180

0 commit comments

Comments
 (0)