Skip to content

Commit

Permalink
improve: compilation commands
Browse files Browse the repository at this point in the history
This commit improves the compilation commands resulting in even better sized releases.
  • Loading branch information
ThePedroo committed Jul 26, 2024
1 parent 8e22c2c commit e79a695
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions loader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ val defaultCFlags = arrayOf(
)

val releaseFlags = arrayOf(
"-Oz", "-flto",
"-Wno-unused", "-Wno-unused-parameter",
"-fvisibility=hidden", "-fvisibility-inlines-hidden",
"-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
"-Wl,--exclude-libs,ALL", "-Wl,--gc-sections", "-Wl,--strip-all"
"-Wl,--exclude-libs,ALL", "-Wl,--gc-sections",
"-Wl,--strip-all", "-Ofast", "-flto=thin",
)

android {
Expand Down
6 changes: 4 additions & 2 deletions zygiskd/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ val commitHash: String by rootProject.extra
val CFlagsRelease = arrayOf(
"-D_GNU_SOURCE", "-std=c99", "-Wpedantic", "-Wall", "-Wextra", "-Werror",
"-Wformat", "-Wuninitialized", "-Wshadow", "-Wno-zero-length-array",
"-Wno-fixed-enum-extension", "-Iroot_impl", "-llog"
"-Wno-fixed-enum-extension", "-Iroot_impl", "-llog",
"-Wl,--strip-all", "-flto=thin", "-Ofast"
)

val CFlagsDebug = arrayOf(
"-D_GNU_SOURCE", "-std=c99", "-Wpedantic", "-Wall", "-Wextra", "-Werror",
"-Wformat", "-Wuninitialized", "-Wshadow", "-Wno-zero-length-array",
"-Wno-fixed-enum-extension", "-Iroot_impl", "-llog", "-g"
"-Wno-fixed-enum-extension", "-Iroot_impl", "-llog",
"-g", "-O0"
)

val Files = arrayOf(
Expand Down

0 comments on commit e79a695

Please sign in to comment.