You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking into #4319, I discovered that there doesn't seem to be a way to pass flags to the wasm-ld external linker from the tinygo build command. The only way I could find is to create a custom target JSON, which is a bit heavyweight.
There is -ldflags, but it's documented as being for flags compatible with the Go linker.
The standard Go build system defines -extldflags which seems to be what I want, but tinygo build doesn't have that flag.
The text was updated successfully, but these errors were encountered:
While looking into #4319, I discovered that there doesn't seem to be a way to pass flags to the
wasm-ld
external linker from thetinygo build
command. The only way I could find is to create a custom target JSON, which is a bit heavyweight.There is
-ldflags
, but it's documented as being for flags compatible with the Go linker.The standard Go build system defines
-extldflags
which seems to be what I want, buttinygo build
doesn't have that flag.The text was updated successfully, but these errors were encountered: