compiler: add support for GODEBUG=gotypesalias=1

Since we now require Go 1.22, this became a lot simpler (since we can
now refer to `types.Alias` and `types.Unalias`).
This commit is contained in:
Ayke van Laethem
2025-05-24 14:38:09 +02:00
committed by Ron Evans
parent 3f4f4e0ead
commit 2e043c7fbc
4 changed files with 27 additions and 9 deletions
-3
View File
@@ -67,9 +67,6 @@
# has `md5sum`).
export MD5SUM=md5sum
# Work around #4819, missing support for generic type aliases.
export GODEBUG=gotypesalias=0
# Ugly hack to make the Clang resources directory available.
export GOFLAGS="\"-ldflags=-X github.com/tinygo-org/tinygo/goenv.clangResourceDir=${llvmPackages_20.clang.cc.lib}/lib/clang/20\" -tags=llvm20"
'';