From f39dddb1b5ccf9ec52ab116c24af9903930ac9f7 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sat, 14 Dec 2024 15:17:16 +0800 Subject: [PATCH] Supressing GLFW warning for deprecations in Darwin platform. --- build.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index f86f6f7..d7f0a3b 100644 --- a/build.py +++ b/build.py @@ -243,7 +243,9 @@ def include_sha_headers(): 'g++', '-static', '-static-libgcc', '-Iinclude', '-Istd', '-shared', '-o', OUTPUT_LIBRARY + '.dll', '-L' + os.path.join(TEMP_DIR, 'glfw-3.4', 'lib-mingw-w64') - ] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + ['-lole32'] + ] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + [ + '-lole32', '-lglfw', '-lGL', '-lopengl32', '-lgdi32' + ] print("Executing:") print(' '.join(exe_build_args)) @@ -346,7 +348,8 @@ def include_sha_headers(): '-Wwrite-strings', '-Wno-return-type-c-linkage', '-pipe', '-std=c++17', '-fopenmp', '-march=native', '-funroll-loops', '-ffast-math', '-flto=auto', '-Xpreprocessor', '-O3', - '-Wno-header-guard', '-Wno-pessimizing-move' + '-Wno-header-guard', '-Wno-pessimizing-move', '-Wno-deprecated-declarations', + '-DGL_SILENCE_DEPRECATION' ] + lib_headers + lib_source_files + cpp_files + ['-o', OUTPUT_EXECUTABLE] include_sha_headers()