cmd/cue: disable the wasm interpreter by default for now
We aren't shipping wasm support right now, so bundling the interpreter
pulls in wazero and makes cue binaries significantly larger
while bringing in no real value to users yet.
For now, disable it in cmd/cue unless the build tag cuewasm is used,
which brings down the size of a "go build" binary
from 26.2MiB to 23.8 MiB on linux/amd64.
We use a build tag rather than disabling the code in cmd/cue/cmd
because otherwise we would completely break the wasm.TestExe tests,
which use cmd/cue as a form of integration test.
A build tag also allows us to opt into the feature as needed.
The tests in cue/interpreter/wasm are updated accordingly,
as TestExe now requires the build tag to be set as well.
We also teach CI to test with the new build tag as well.
There is no particular reason I chose "cuewasm" as the build tag here.
We can't go for "wasm", as that conflicts with GOARCH=wasm.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I3f5ef18d5c0b58c687d43bd691a688779c1ab33d
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1190172
Reviewed-by: Aram Hăvărneanu <aram@cue.works>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>