David Heidelberg
35a83c3514
Enable IPO/LTO by default except for debug builds (#14198)
Test case:
```
$ cmake . -DRUN_IN_PLACE=TRUE -DCMAKE_BUILD_TYPE=Release -DBUILD_SERVER=TRUE -DENABLE_TOUCH=FALSE
minetest minetestserver
W/o LTO: 13M 7.3M
W/ LTO: 11M 5.9M
difference: 15% 19%
```
Also fixes various compiler warnings resulting from compilation using LTO.
---------
Signed-off-by: David Heidelberg <david@ixit.cz>
2024-05-06 20:58:14 +02:00
..
2023-11-07 22:18:26 +01:00
2024-05-06 20:58:14 +02:00
2022-07-04 01:06:57 +02:00
2023-11-23 18:26:00 +01:00
2023-05-26 15:21:23 +02:00
2021-03-01 12:12:52 +01:00
2023-11-28 23:11:29 +01:00
2023-11-19 20:46:52 +01:00
2023-11-05 09:11:30 +01:00
2020-04-03 23:26:07 +02:00
2022-07-22 20:13:10 +02:00
2023-01-23 00:19:30 +01:00
2023-05-18 20:34:18 +02:00