Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c95d321
`-fstack-clash-protection` is a linker flag
grendello Jan 15, 2024
d98858c
Disable false negative warning for array bounds checking
grendello Jan 15, 2024
6a82a2d
Use `std::array<T,S>` for override_dirs
grendello Jan 15, 2024
de9a18d
Optimize startup a tiny bit
grendello Jan 16, 2024
fc5eff0
`std::string_view` all the way (even if it's fugly :P)
grendello Jan 16, 2024
f55b42a
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Jan 17, 2024
1176d3d
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Jan 17, 2024
81c05a4
Fix finding assembly blob entries in the apk
grendello Jan 17, 2024
6e90924
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Jan 17, 2024
5f9be55
nicer, a bit. Still a fugly hack
grendello Jan 17, 2024
4e712cc
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Jan 18, 2024
06329f8
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Jan 25, 2024
0939db2
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Jan 25, 2024
fb17eec
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Jan 25, 2024
a4987ef
Migration from to continues
grendello Jan 25, 2024
383f887
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Jan 26, 2024
3ea6c6a
More std:string_view-ication
grendello Jan 26, 2024
66f3db0
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Feb 7, 2024
1216016
Remove all the WINDOWS, APPLE, desktop and !NET code
grendello Feb 7, 2024
154e70f
Merge branch 'main' into dev/grendel/cpp-tweaks
grendello Feb 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/monodroid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,16 @@ endif()
# Compiler and linker flags
set(LINK_LIBS "")

#
# -Wformat-nonliteral is disabled as it's not very practical, because we use proxy functions to
# pass formats to the final Android logger functions. The Android functions have attributes that
# cause warnings similar to:
#
# warning G4FD2E6FD: format string is not a string literal [-Wformat-nonliteral]
#
# The warning is, in general, a good practice because the compiler can verify the printf format
# at compile time, but in our case it's not very useful.
#
set(LOCAL_COMMON_COMPILER_ARGS
-Wall
-Wconversion
Expand All @@ -333,6 +343,7 @@ set(LOCAL_COMMON_COMPILER_ARGS
-Wextra
-Wformat-security
-Wformat=2
-Wno-format-nonliteral
-Wimplicit-fallthrough
-Wmisleading-indentation
-Wnull-dereference
Expand All @@ -341,7 +352,6 @@ set(LOCAL_COMMON_COMPILER_ARGS
-Wsign-compare
-Wtrampolines
-Wuninitialized
-fstack-clash-protection
-fstrict-flex-arrays=3
)

Expand Down Expand Up @@ -370,6 +380,10 @@ endif()

set(LOCAL_COMMON_LINKER_ARGS "")
if(ANDROID)
list(APPEND LOCAL_COMMON_LINKER_ARGS
-fstack-clash-protection
)

if (ENABLE_CLANG_ASAN OR ENABLE_CLANG_UBSAN)
list(APPEND LOCAL_COMMON_COMPILER_ARGS
-fno-omit-frame-pointer
Expand Down
Loading