aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-12-07 00:05:23 +0900
committernsfisis <nsfisis@gmail.com>2022-12-07 00:05:23 +0900
commit41b4b0e249d2e473e7974646a908f71ca1ac4031 (patch)
treeca69c6f7c567498b71ddd689d3b8900e91f776ca
parentf414f8428584cc609d7ca302faf56c82ebf7fa67 (diff)
downloadRayTracingInOneWeekend.zig-41b4b0e249d2e473e7974646a908f71ca1ac4031.tar.gz
RayTracingInOneWeekend.zig-41b4b0e249d2e473e7974646a908f71ca1ac4031.tar.zst
RayTracingInOneWeekend.zig-41b4b0e249d2e473e7974646a908f71ca1ac4031.zip
enable optimization
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index da02229..58b5adb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,13 @@
+BUILDFLAGS := -Drelease-fast=true
+
.PHONY: all
all: fmt
@rm -f out.ppm
- @zig build run > out.ppm
+ @zig build ${BUILDFLAGS} run > out.ppm
.PHONY: build
build: fmt
- @zig build
+ @zig build ${BUILDFLAGS}
.PHONY: fmt
fmt: