document tiny flag; have it use flto on clang
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
a00d4ba144
commit
cce41b32b8
2 changed files with 12 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue