]> Lady’s Gitweb - CGirls/blob - make/config-sample.mak
Build testing infrastructure
[CGirls] / make / config-sample.mak
1 # SPDX-FileCopyrightText: 2025 Lady <https://www.ladys.computer/about/#lady>
2 # SPDX-License-Identifier: CC0-1.0
3
4 # Sample code to generate a more optimized build, assuming Clang as the
5 # compiler.
6 #
7 # • `-DNDEBUG´ drops `assert()´ functionality.
8 #
9 # • `-O3´ sets the level of optimization to maximum.
10 #
11 # • `-flto´ enables link‐time optimization.
12 #
13 # • `-g0´ drops debugging information.
14 CFLAGS := $(filter-out -O% -g -g%,$(CFLAGS)) \
15 -DNDEBUG -O3 -flto -g0
This page took 0.234351 seconds and 5 git commands to generate.