aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLion Kortlepel <[email protected]>2026-01-25 16:18:26 +0000
committerLion Kortlepel <[email protected]>2026-01-25 16:18:26 +0000
commit90aa7613246697a483d765b9ce5a1eb199eda6c2 (patch)
tree89b7fcb1f3a197bd65936ee3ebc27a84b4e52b04 /Makefile
parent9103fe385e3f9e0fc3502b17b36891c9b251a6da (diff)
downloadargs-90aa7613246697a483d765b9ce5a1eb199eda6c2.tar.zst
args-90aa7613246697a483d765b9ce5a1eb199eda6c2.zip
fix: fix debug info displaying wrong file/line info
in tests specifically
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 28834f2..7d589a9 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ tests/tests: ls_args.o tests/tests.c tests/ls_test.h
# most pedantic settings.
# Dont use this.
ls_args.o: ls_args.h
- echo -e "#include <stddef.h>\nvoid* test_realloc(void*, size_t);" >.test.h
+ echo -e "#include <stddef.h>\nvoid* test_realloc(void*, size_t);\n#line 1 \"ls_args.h\"" >.test.h
cat .test.h ls_args.h >.ls_args_test.c
rm .test.h
$(CC) -c -x c -o $@ .ls_args_test.c -Wall -Wextra -Wpedantic -Werror -std=c89 -ggdb \