diff options
author | Ayke van Laethem <[email protected]> | 2022-05-22 16:42:52 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-05-22 18:07:57 +0200 |
commit | c23a5b65ef1a5255a42ada8acda7ff506e6ea075 (patch) | |
tree | 497bd46e0a360005779db4d4d1e0c5f08d346dce /Makefile | |
parent | b8e433821adca1d1b68abb584e606a1217434894 (diff) | |
download | tinygo-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |