Index: irgen/compiler.go =================================================================== --- irgen/compiler.go +++ irgen/compiler.go @@ -216,8 +216,9 @@ Sizes: compiler.llvmtypes, DisableUnusedImportCheck: compiler.DisableUnusedImportCheck, }, - Build: &buildctx.Context, - PackageCreated: compiler.PackageCreated, + ImportFromBinary: true, + Build: &buildctx.Context, + PackageCreated: compiler.PackageCreated, } // If no import path is specified, then set the import // path to be the same as the package's name. Index: update_third_party.sh =================================================================== --- update_third_party.sh +++ update_third_party.sh @@ -7,7 +7,7 @@ gccrev=216268 gotoolsrepo=https://go.googlesource.com/tools -gotoolsrev=47f2109c640e97025f36c98610bd9782e815012e +gotoolsrev=d4e70101500b43ffe705d4c45e50dd4f1c8e3b2e tempdir=$(mktemp -d /tmp/update_third_party.XXXXXX) gofrontenddir=$tempdir/gofrontend @@ -84,11 +84,6 @@ find third_party/gotools -name '*.go' | xargs sed -i -e \ 's,"golang.org/x/tools/,"llvm.org/llgo/third_party/gotools/,g' -# Until the version skew between the "go" tool and the compiler is resolved, -# we patch out Go 1.4 specific code in go.tools. -sed -i -e '/go1\.4/ d' third_party/gotools/go/exact/go13.go -rm third_party/gotools/go/exact/go14.go - # --------------------- license check --------------------- # We don't want any GPL licensed code without an autoconf/libtool