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 f39dddb commit 06b3c90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,14 +348,14 @@ 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-deprecated-declarations',
'-DGL_SILENCE_DEPRECATION'
'-Wno-header-guard', '-Wno-pessimizing-move'
] + lib_headers + lib_source_files + cpp_files + ['-o', OUTPUT_EXECUTABLE]

include_sha_headers()
lib_build_args = [
'/opt/homebrew/opt/llvm/bin/clang++', '-Iinclude',
'-Istd', '-shared', '-o', OUTPUT_LIBRARY + '.dylib'
'-Istd', '-shared', '-o', OUTPUT_LIBRARY + '.dylib',
'-Wno-deprecated-declarations', '-DGL_SILENCE_DEPRECATION'
] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + [
'-lglfw', '-framework', 'OpenGL'
]
Expand Down

0 comments on commit 06b3c90

Please sign in to comment.