From 8543cd6178c036951ae0565e142ab355a8dc11d9 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sat, 14 Dec 2024 15:39:15 +0800 Subject: [PATCH] Supressing GLFW warning for deprecations in Darwin platform. --- build.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.py b/build.py index aae9aab..3757907 100644 --- a/build.py +++ b/build.py @@ -180,13 +180,12 @@ def include_sha_headers(): ext_instructions = get_ext_instructions() if PLATFORM == 'Linux': subprocess.run([ - 'sudo', 'apt', 'install', - '-y', 'libglfw3-dev', 'libgl1-mesa-dev' + 'sudo', 'apt', 'install', '-y', + 'libglfw3-dev', 'libgl1-mesa-dev' ]) elif PLATFORM == 'Darwin': - subprocess.run([ - 'brew', 'install', 'glfw' - ]) + subprocess.run(['brew', 'install', 'glfw']) + subprocess.run(['brew', 'link', 'glfw']) print('Building binaries...') if PLATFORM == 'Windows': @@ -355,7 +354,8 @@ def include_sha_headers(): lib_build_args = [ '/opt/homebrew/opt/llvm/bin/clang++', '-Iinclude', '-Istd', '-shared', '-o', OUTPUT_LIBRARY + '.dylib', - '-Wno-deprecated-declarations', '-DGL_SILENCE_DEPRECATION' + '-Wno-deprecated-declarations', '-DGL_SILENCE_DEPRECATION', + '-L/opt/homebrew/lib' ] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + [ '-lglfw', '-framework', 'OpenGL' ]