From 5f28b07f75407c538241836da668d686b836ed5e Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 24 Aug 2018 03:32:29 +0200 Subject: [PATCH] Enable aggressive code size optimizations: -Oz --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 05bcf8956..fb90f0743 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ build/%.bc: src/examples/% src/examples/%/*.go build/tgo src/runtime/*.go build/ # Compile and optimize bitcode file. build/%.o: build/%.bc - $(OPT) -Os -enable-coroutines -o $< $< + $(OPT) -Oz -enable-coroutines -o $< $< $(LLC) -filetype=obj -o $@ $< # Compile C sources for the runtime.