Skip to content

Commit

Permalink
Supressing GLFW warning for deprecations in Darwin platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 14, 2024
1 parent d32881a commit f39dddb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit f39dddb

Please sign in to comment.