From 518b46400f45a525681cc9325c45e3a6a934f4c3 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 10 Oct 2026 03:21:36 +0100 Subject: Support self-contained Windows compiler toolchain This will need to be accompanied by the publication of my toolchains repo at some point which has scripts to set up fixed versions of MSVC and LLVM, with way less space wasted than the official distributions thereof. Also that'll become necessary for a period of time until I figure out why LLVM 22 and 23 are unable to link SST now; we are stuck on 20 for the foreseeable future which makes having a self-contained thing quite helpful. This change also includes a couple of other build script improvements too, most notably debug builds without having to edit the damn script every time. --- compile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compile') diff --git a/compile b/compile index 39a2d99..ea00965 100755 --- a/compile +++ b/compile @@ -24,6 +24,8 @@ warnings="-Wall -pedantic -Wno-parentheses -Wno-missing-braces \ stdflags="-std=c2x -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64" dbg=0 +if [ "$1" = "dbg" ]; then dbg=1; fi + if [ "$dbg" = 1 ]; then cflags="-O0 -g3 -masm=intel -fsanitize-trap=undefined -DSST_DBG" ldflags="-O0 -g3" -- cgit v1.2.3-54-g00ecf