fix clang 16 on mac building
This commit is contained in:
parent
43e0492e7d
commit
1232b700a5
1 changed files with 3 additions and 0 deletions
|
@ -162,16 +162,19 @@ def build_unix():
|
||||||
'-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework',
|
'-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework',
|
||||||
'CoreVideo']
|
'CoreVideo']
|
||||||
libraries = []
|
libraries = []
|
||||||
|
extra_compile_args = ["-Wno-error=incompatible-function-pointer-types"]
|
||||||
else: #platform.system() == "Linux":
|
else: #platform.system() == "Linux":
|
||||||
print("BUILDING FOR LINUX")
|
print("BUILDING FOR LINUX")
|
||||||
extra_link_args = get_lib_flags() + [ '-lm', '-lpthread', '-lGL',
|
extra_link_args = get_lib_flags() + [ '-lm', '-lpthread', '-lGL',
|
||||||
'-lrt', '-lm', '-ldl', '-lX11', '-lpthread', '-latomic']
|
'-lrt', '-lm', '-ldl', '-lX11', '-lpthread', '-latomic']
|
||||||
|
extra_compile_args = []
|
||||||
libraries = ['GL', 'm', 'pthread', 'dl', 'rt', 'X11', 'atomic']
|
libraries = ['GL', 'm', 'pthread', 'dl', 'rt', 'X11', 'atomic']
|
||||||
|
|
||||||
ffibuilder.set_source("raylib._raylib_cffi",
|
ffibuilder.set_source("raylib._raylib_cffi",
|
||||||
ffi_includes,
|
ffi_includes,
|
||||||
include_dirs=[get_the_include_path()],
|
include_dirs=[get_the_include_path()],
|
||||||
extra_link_args=extra_link_args,
|
extra_link_args=extra_link_args,
|
||||||
|
extra_compile_args=extra_compile_args,
|
||||||
libraries=libraries)
|
libraries=libraries)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue