begin the C++ rewrite

This commit is contained in:
2026-03-08 17:23:13 +01:00
parent 3d14448de7
commit f71784909b
4 changed files with 101 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
COMMON="-g -Wall -Wextra -Wpedantic -Wno-unused-variable -Wno-gnu-binary-literal"
COMMON="-g -Wall -Wextra -Wpedantic -Wno-unused-variable"
echo "building mos6502..."
cc $COMMON -std=c99 -o mos6502 mos6502.c
@@ -17,7 +17,7 @@ if command -v pkg-config >/dev/null; then
LIBELF_FLAGS=$(pkg-config --cflags --libs libelf 2>/dev/null)
if [ $? -eq 0 ]; then
echo "building riscv64..."
cc $COMMON -std=gnu11 -o riscv64 riscv64.c $LIBELF_FLAGS
c++ $COMMON -o riscv64 riscv64.cc $LIBELF_FLAGS
else
echo "libelf not found - skipping riscv64..."
fi