Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Some flags are incorrectly removed
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Mar 3, 2021
1 parent 5b6113d commit 5f3f570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riru/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set(LINKER_FLAGS "-ffixed-x18 -Wl,--hash-style=both")
set(C_FLAGS "-Werror=format -fdata-sections -ffunction-sections -fno-exceptions -fno-rtti")

if (CMAKE_BUILD_TYPE STREQUAL "Release")
set(C_FLAGS "${C_FLAGS} -O2")
set(C_FLAGS "${C_FLAGS} -O2 -fvisibility=hidden -fvisibility-inlines-hidden")
set(LINKER_FLAGS "${LINKER_FLAGS} -Wl,-exclude-libs,ALL -Wl,--gc-sections")
else ()
add_definitions(-DDEBUG)
Expand Down

0 comments on commit 5f3f570

Please sign in to comment.