examples

Toy examples in single C files.
git clone git://henryandlizzy.uk/examples
Log | Files | Refs

commit 4ad66c4a2aef4a47840477bb90de003b4127d608
parent 53d4fc03a514f94f3957ce475b6dee9771093faf
Author: Henry Wilson <henry@henryandlizzy.uk>
Date:   Thu, 10 Oct 2024 14:48:17 +0100

buildsystem: Update build.sh

Diffstat:
Mbuild.sh | 74+++++++++++++++++++++++++++++++++++++++-----------------------------------
1 file changed, 39 insertions(+), 35 deletions(-)

diff --git a/build.sh b/build.sh @@ -6,6 +6,7 @@ mkdir -p "bin" (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/alsa-simple src/alsa-simple.c -lasound) (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/cat src/cat.c ) (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/clock-test src/clock-test.c ) +(cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/clone src/clone.c ) (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/cobs src/cobs.c ) (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/crc-table src/crc-table.c ) (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/damm-checksum src/damm-checksum.c ) @@ -25,38 +26,41 @@ mkdir -p "bin" (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/sudoku src/sudoku.c ) (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/whichtty src/whichtty.c ) (cc -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/xor-linked-list src/xor-linked-list.c ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/arena-tree src/arena-tree.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/atexit src/atexit.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/barrier src/barrier.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/bit_cast src/bit_cast.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/cie-1931 src/cie-1931.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-generator-consumer src/coro-generator-consumer.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-generator2 src/coro-generator2.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-poll src/coro-poll.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-round-robin src/coro-round-robin.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-state-machine src/coro-state-machine.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-throwing src/coro-throwing.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-timer-dispatch src/coro-timer-dispatch.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-unconditional-dispatch src/coro-unconditional-dispatch.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/crc7 src/crc7.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/dimensions src/dimensions.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/elastic-tabstops src/elastic-tabstops.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/flat-set src/flat-set.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/gl-asteroids src/gl-asteroids.cpp -lglfw -lGL -lm -lasound) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/hush src/hush.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/io_uring src/io_uring.cpp -luring) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/list-composition src/list-composition.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/mmallocator src/mmallocator.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/model src/model.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/mutex_container src/mutex_container.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/owning_ptr src/owning_ptr.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/pathfind src/pathfind.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/pulse-async-client src/pulse-async-client.cpp -lpulse) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/sdl src/sdl.cpp -lSDL2) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/sorts src/sorts.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/sqlite-saveload src/sqlite-saveload.cpp -lsqlite3) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/template_specialisation src/template_specialisation.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/token-threaded-forth src/token-threaded-forth.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/treeify src/treeify.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/triple-buf src/triple-buf.cpp ) -(c++ -std=c++20 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/type-erased-unique_ptr src/type-erased-unique_ptr.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/arena-tree src/arena-tree.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/atexit src/atexit.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/barrier src/barrier.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/bit_cast src/bit_cast.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/cie-1931 src/cie-1931.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-generator-consumer src/coro-generator-consumer.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-generator2 src/coro-generator2.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-poll src/coro-poll.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-round-robin src/coro-round-robin.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-state-machine src/coro-state-machine.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-throwing src/coro-throwing.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-timer-dispatch src/coro-timer-dispatch.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/coro-unconditional-dispatch src/coro-unconditional-dispatch.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/crc7 src/crc7.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/dimensions src/dimensions.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/elastic-tabstops src/elastic-tabstops.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/endian src/endian.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/filter-bubble src/filter-bubble.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/flat-set src/flat-set.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/gl-asteroids src/gl-asteroids.cpp -lglfw -lGL -lm -lasound) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/hush src/hush.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/io_uring src/io_uring.cpp -luring) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/list-composition src/list-composition.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/mmallocator src/mmallocator.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/model src/model.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/mutex_container src/mutex_container.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/owning_ptr src/owning_ptr.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/pathfind src/pathfind.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/pulse-async-client src/pulse-async-client.cpp -lpulse) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/sdl-gl src/sdl-gl.cpp -lSDL2 -lGL) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/sdl src/sdl.cpp -lSDL2) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/sorts src/sorts.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/sqlite-saveload src/sqlite-saveload.cpp -lsqlite3) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/template_specialisation src/template_specialisation.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/token-threaded-forth src/token-threaded-forth.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/treeify src/treeify.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/triple-buf src/triple-buf.cpp ) +(c++ -std=c++23 -Wall -Wextra -Werror -fdiagnostics-color=always -fsanitize=undefined,address -o bin/type-erased-unique_ptr src/type-erased-unique_ptr.cpp )