You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
improve: compilation commands
This commit improves the compilation commands resulting in even better sized releases.
This commit is contained in:
@@ -35,11 +35,11 @@ val defaultCFlags = arrayOf(
|
|||||||
)
|
)
|
||||||
|
|
||||||
val releaseFlags = arrayOf(
|
val releaseFlags = arrayOf(
|
||||||
"-Oz", "-flto",
|
|
||||||
"-Wno-unused", "-Wno-unused-parameter",
|
"-Wno-unused", "-Wno-unused-parameter",
|
||||||
"-fvisibility=hidden", "-fvisibility-inlines-hidden",
|
"-fvisibility=hidden", "-fvisibility-inlines-hidden",
|
||||||
"-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
|
"-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 {
|
android {
|
||||||
|
|||||||
@@ -29,13 +29,15 @@ val commitHash: String by rootProject.extra
|
|||||||
val CFlagsRelease = arrayOf(
|
val CFlagsRelease = arrayOf(
|
||||||
"-D_GNU_SOURCE", "-std=c99", "-Wpedantic", "-Wall", "-Wextra", "-Werror",
|
"-D_GNU_SOURCE", "-std=c99", "-Wpedantic", "-Wall", "-Wextra", "-Werror",
|
||||||
"-Wformat", "-Wuninitialized", "-Wshadow", "-Wno-zero-length-array",
|
"-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(
|
val CFlagsDebug = arrayOf(
|
||||||
"-D_GNU_SOURCE", "-std=c99", "-Wpedantic", "-Wall", "-Wextra", "-Werror",
|
"-D_GNU_SOURCE", "-std=c99", "-Wpedantic", "-Wall", "-Wextra", "-Werror",
|
||||||
"-Wformat", "-Wuninitialized", "-Wshadow", "-Wno-zero-length-array",
|
"-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(
|
val Files = arrayOf(
|
||||||
|
|||||||
Reference in New Issue
Block a user