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
..
2024-05-06 20:58:14 +02:00
2023-07-30 15:29:25 +01:00
2023-10-03 20:34:24 +02:00
2023-05-29 12:30:30 +07:00
2023-10-24 18:17:18 +02:00
2023-04-16 20:23:53 +01:00
2023-10-28 17:33:44 +01:00
2023-06-05 12:02:59 +02:00
2022-01-08 14:53:25 +01:00
2023-10-28 17:33:44 +01:00
2022-04-08 14:55:21 +01:00
2023-12-03 15:00:29 +07:00
2023-04-16 20:23:53 +01:00
2016-01-09 15:11:43 -05:00
2023-10-28 17:33:44 +01:00
2022-09-16 13:19:44 +02:00
2015-03-27 15:00:48 -04:00
2023-10-09 17:13:44 +02:00
2019-02-03 01:32:37 +00:00
2023-06-22 17:50:36 +02:00
2023-11-08 07:00:04 +07:00