This commit is contained in:
Judah Caruso 2026-02-18 18:29:29 -07:00
parent d1a047b2a3
commit 72ea210de8

View file

@ -27,11 +27,14 @@ blocks_include := if os() == "macos" { "" } else { "-I" + blocks_dir / "BlocksRu
blocks_src := if os() == "macos" { "" } else { blocks_dir / "BlocksRuntime" / "runtime.c" + " " + blocks_dir / "BlocksRuntime" / "data.c" } blocks_src := if os() == "macos" { "" } else { blocks_dir / "BlocksRuntime" / "runtime.c" + " " + blocks_dir / "BlocksRuntime" / "data.c" }
# cflags # cflags
winflags := if os() == "windows" { "" } else { "" }
macflags := if os() == "macos" { "-x objective-c -lobjc -framework Foundation -framework Cocoa -framework CoreFoundation -framework CoreGraphics -framework QuartzCore -framework Metal -framework MetalKit"} else { "" } macflags := if os() == "macos" { "-x objective-c -lobjc -framework Foundation -framework Cocoa -framework CoreFoundation -framework CoreGraphics -framework QuartzCore -framework Metal -framework MetalKit"} else { "" }
lnxflags := if os() == "linux" { "" } else { "" }
allflags := macflags + winflags + lnxflags
csrc := "src/main.c" + " " + blocks_src csrc := "src/main.c" + " " + blocks_src
cinc := "-Isrc -Ithirdparty " + blocks_include cinc := "-Isrc -Ithirdparty " + blocks_include
cflags := "-std=c23 -fblocks -g " + macflags + " " + cinc cflags := "-std=c23 -fblocks -g " + allflags + " " + cinc