mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 15:33:40 +00:00
all: use -opt flag for optimization level in CFlags (-Os, etc)
This brings some consistency to the CFlags and fixes the issue that on some platforms (Linux, MacOS), no optimization level was set and therefore C files in packages were not optimized at all.
This commit is contained in:
committed by
Ron Evans
parent
32899d1cc3
commit
6234bf9a88
+1
-2
@@ -7,8 +7,7 @@
|
||||
"libc": "wasi-libc",
|
||||
"cflags": [
|
||||
"--target=wasm32--wasi",
|
||||
"--sysroot={root}/lib/wasi-libc/sysroot",
|
||||
"-Oz"
|
||||
"--sysroot={root}/lib/wasi-libc/sysroot"
|
||||
],
|
||||
"ldflags": [
|
||||
"--allow-undefined",
|
||||
|
||||
Reference in New Issue
Block a user