aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-05-22 16:42:52 +0200
committerRon Evans <[email protected]>2022-05-22 18:07:57 +0200
commitc23a5b65ef1a5255a42ada8acda7ff506e6ea075 (patch)
tree497bd46e0a360005779db4d4d1e0c5f08d346dce /Makefile
parentb8e433821adca1d1b68abb584e606a1217434894 (diff)
downloadtinygo-c23a5b65ef1a5255a42ada8acda7ff506e6ea075.tar.gz
tinygo-c23a5b65ef1a5255a42ada8acda7ff506e6ea075.zip
darwin: support -size= flag
This is just basic support. It doesn't add support for reading DWARF, because that's a bit complicated on MacOS (it isn't stored in the file itself but separately in the object files). But at least this change makes it possible to easily print executable sizes by section type like for other operating systems.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cd267dbd4..fe476269c 100644
--- a/Makefile
+++ b/Makefile
@@ -634,8 +634,8 @@ endif
@$(MD5SUM) test.hex
GOOS=linux GOARCH=arm $(TINYGO) build -size short -o test.elf ./testdata/cgo
GOOS=windows GOARCH=amd64 $(TINYGO) build -size short -o test.exe ./testdata/cgo
- GOOS=darwin GOARCH=amd64 $(TINYGO) build -o test ./testdata/cgo
- GOOS=darwin GOARCH=arm64 $(TINYGO) build -o test ./testdata/cgo
+ GOOS=darwin GOARCH=amd64 $(TINYGO) build -size short -o test ./testdata/cgo
+ GOOS=darwin GOARCH=arm64 $(TINYGO) build -size short -o test ./testdata/cgo
ifneq ($(OS),Windows_NT)
# TODO: this does not yet work on Windows. Somehow, unused functions are
# not garbage collected.