abg

Animated background for X11
git clone git://git.laack.co/abg.git
Log | Files | Refs | README | LICENSE

commit b4132129dc56992a7bd5f8f7cd50004c5ab00986
parent 5396bc85041ae054517949dce8a0a9da9c79867a
Author: Andrew Laack <andrew@laack.co>
Date:   Thu, 17 Sep 2026 21:10:01 -0500

Fixing up build

Diffstat:
Mconfig.mk | 11+++++------
Msrc/main.cpp | 4++--
2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/config.mk b/config.mk @@ -11,18 +11,17 @@ TLIBS = -lCatch2Main -lCatch2 ${LIBS} # compiler CC = g++ -CFLAGS = -Ofast -std=c++23 -Wpedantic -Wall -Werror -Wextra -Wno-deprecated-declarations -CTFLAGS = -fsanitize=address,undefined -O0 -std=c++23 -Wpedantic -Wall -Werror -Wextra -Wno-deprecated-declarations +DFLAGS = -O0 -fsanitize=address,undefined -g -std=c++23 -Wpedantic -Wall -Wextra -Wno-deprecated-declarations +CFLAGS = -Ofast -std=c++23 +CTFLAGS = -fsanitize=address,undefined -O0 -std=c++23 -Wpedantic -Wall -Wextra -Wno-deprecated-declarations BASE_FILES = src/prim.cpp src/graph.cpp src/edge.cpp src/utils.cpp src/vertex.cpp src/background.cpp -COMMAND_P = ${CC} ${CFLAGS} +COMMAND_P = ${CC} ${CFLAGS} -D NDEBUG COMMAND_S = ${BASE_FILES} ${LIBS} TCOMMAND_P = ${CC} ${CTFLAGS} TCOMMAND_S = ${BASE_FILES} ${TLIBS} -# probably a good idea for debug mode to build the same as release, even though this loses out on asan and such. -# that's what tests are for. -DCOMMAND_P = ${CC} ${CFLAGS} -D NDEBUG +DCOMMAND_P = ${CC} ${DFLAGS} DCOMMAND_S = ${BASE_FILES} ${LIBS} diff --git a/src/main.cpp b/src/main.cpp @@ -15,9 +15,9 @@ #include "../vendor/argparse.hpp" #ifdef NDEBUG -#define DEBUG true -#else #define DEBUG false +#else +#define DEBUG true #endif int main(int argc, char** argv) {