]> Lady’s Gitweb - CGirls/blobdiff - make/config-sample.mak
Build testing infrastructure
[CGirls] / make / config-sample.mak
diff --git a/make/config-sample.mak b/make/config-sample.mak
new file mode 100644 (file)
index 0000000..be9b21f
--- /dev/null
@@ -0,0 +1,15 @@
+# SPDX-FileCopyrightText: 2025 Lady <https://www.ladys.computer/about/#lady>
+# SPDX-License-Identifier: CC0-1.0
+
+# Sample code to generate a more optimized build, assuming Clang as the
+# compiler.
+#
+# • `-DNDEBUG´ drops `assert()´ functionality.
+#
+# • `-O3´ sets the level of optimization to maximum.
+#
+# • `-flto´ enables link‐time optimization.
+#
+# • `-g0´ drops debugging information.
+CFLAGS := $(filter-out -O% -g -g%,$(CFLAGS)) \
+  -DNDEBUG -O3 -flto -g0
This page took 0.184684 seconds and 4 git commands to generate.