Skip to content

Commit

Permalink
build: take care of some macOS build warnings (#1332)
Browse files Browse the repository at this point in the history
- remove -stdlib=libc++ as it caused warnings when applied to C files
and has been the default on macOS for something like a decade
- add -Wno-deprecated-declarations to the command line to silence
warnings about things like sprintf in thirdparty
  • Loading branch information
invertego authored Dec 7, 2023
1 parent 1146c0d commit 4116855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nall/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ endif
# macos settings
ifeq ($(platform),macos)
flags += -stdlib=libc++ -mmacosx-version-min=10.9 -Wno-auto-var-id -fobjc-arc
flags += -mmacosx-version-min=10.9 -Wno-auto-var-id -Wno-deprecated-declarations -fobjc-arc
options += -lc++ -lobjc -mmacosx-version-min=10.9
# allow mprotect() on dynamic recompiler code blocks
options += -Wl,-segprot,__DATA,rwx,rw
Expand Down

0 comments on commit 4116855

Please sign in to comment.