commit d65516439b03c3dbabc74141bda1b804af6bc962 parent 136b00b45ea10f2fe75b300ee2ecc5db0c895d67 Author: Henry Wilson <henry@henryandlizzy.uk> Date: Tue, 23 Dec 2025 23:53:51 +0000 Use clang Diffstat:
| M | Tupfile | | | 4 | ++-- |
| M | ls.cpp | | | 2 | +- |
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Tupfile b/Tupfile @@ -1,7 +1,7 @@ -CXXFLAGS = -g -Os -fno-asynchronous-unwind-tables -fno-pic -fno-pie -no-pie -fno-stack-protector -fdiagnostics-color=always +CXXFLAGS = -g -Os -fno-asynchronous-unwind-tables -fno-builtin -fno-pic -fno-pie -fno-stack-protector -fdiagnostics-color=always LDFLAGS = --gc-sections -: foreach *.cpp |> c++ $(CXXFLAGS) -c -o %o %f |> obj/%B.o {objs} +: foreach *.cpp |> clang++ $(CXXFLAGS) -c -o %o %f |> obj/%B.o {objs} run ./gen.sh .gitignore diff --git a/ls.cpp b/ls.cpp @@ -2,7 +2,7 @@ #define assert(x) if (!(x)) __builtin_trap() -size_t strlen(char const* p) +static size_t strlen(char const* p) { char const* const begin = p; while (*p)