document tiny flag; have it use flto on clang
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoI_xD 2026-03-31 17:15:25 -07:00
commit cce41b32b8
2 changed files with 12 additions and 0 deletions

View file

@ -3,6 +3,10 @@ new_object("src/*.c");
my $gl_libs = "";
if (param_get("tiny")) {
add_cflags("-Oz");
if(defined($ENV{CC}) && grep(/^clang$/, $ENV{CC})) {
add_libs("-flto=thin");
add_cflags("-flto=thin");
}
}
if (param_get("classic-theme")) {
add_cflags("-DUSE_CLASSIC_THEME");