diff --git a/0002-Skip-some-cross-Linux-tests-where-qemu-is-broken.patch b/0002-Skip-some-cross-Linux-tests-where-qemu-is-broken.patch index 7e060fe..ea03610 100644 --- a/0002-Skip-some-cross-Linux-tests-where-qemu-is-broken.patch +++ b/0002-Skip-some-cross-Linux-tests-where-qemu-is-broken.patch @@ -1,4 +1,4 @@ -From df546b002b1d2d38e71b8d2e2c0e8f2c419b16c1 Mon Sep 17 00:00:00 2001 +From a16a6a8b23c6aea87cd4823eb4fa990ae14be8e4 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 3 Jan 2022 22:39:31 -0500 Subject: [PATCH 2/8] Skip some cross Linux tests where qemu is broken @@ -10,11 +10,11 @@ The upstream issues will hopefully be fixed soon: Signed-off-by: Elliott Sales de Andrade --- - main_test.go | 14 ++++++++++++++ - 1 file changed, 14 insertions(+) + main_test.go | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) diff --git a/main_test.go b/main_test.go -index ac204f0c..5407ce09 100644 +index ac204f0c..27344c27 100644 --- a/main_test.go +++ b/main_test.go @@ -264,6 +264,13 @@ func runPlatTests(options compileopts.Options, tests []string, t *testing.T) { @@ -25,13 +25,25 @@ index ac204f0c..5407ce09 100644 + // https://gitlab.com/qemu-project/qemu/-/issues/447 + // https://gitlab.com/qemu-project/qemu/-/issues/690 + if runtime.GOARCH == "arm64" && (options.GOARCH == "386" || options.GOARCH == "arm") { -+ t.Skipf("qemu is broken for this host/target architecture combination") ++ t.Skip("qemu is broken for this host/target architecture combination") + } + // Check if the emulator is installed. spec, err := compileopts.LoadTarget(&options) if err != nil { -@@ -353,6 +360,13 @@ func runTestWithConfig(name string, t *testing.T, options compileopts.Options, c +@@ -342,6 +349,11 @@ func runTestWithConfig(name string, t *testing.T, options compileopts.Options, c + t.Fatal(err) + } + ++ if runtime.GOARCH == "arm64" && options.GOARCH == "amd64" && name == "reflect.go" { ++ // https://github.com/tinygo-org/tinygo/issues/3888 ++ t.Skip("qemu is broken for this host/target architecture combination") ++ } ++ + // Build the test binary. + stdout := &bytes.Buffer{} + _, err = buildAndRun("./"+path, config, stdout, cmdArgs, environmentVars, time.Minute, func(cmd *exec.Cmd, result builder.BuildResult) error { +@@ -353,6 +365,13 @@ func runTestWithConfig(name string, t *testing.T, options compileopts.Options, c return } diff --git a/0003-Suggest-optional-packages-to-install-if-missing.patch b/0003-Suggest-optional-packages-to-install-if-missing.patch index 2ddc60a..0d0c89d 100644 --- a/0003-Suggest-optional-packages-to-install-if-missing.patch +++ b/0003-Suggest-optional-packages-to-install-if-missing.patch @@ -1,4 +1,4 @@ -From 118b4127ed490d74429759f4fb8bf5a38b528fba Mon Sep 17 00:00:00 2001 +From f6efc9878db72dc7464d753a026993bb076b5e3e Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sun, 6 Feb 2022 03:49:16 -0500 Subject: [PATCH 3/8] Suggest optional packages to install if missing diff --git a/0004-cgo-Handle-elaborated-typedefs-from-libclang.patch b/0004-cgo-Handle-elaborated-typedefs-from-libclang.patch index a73ee38..af744c2 100644 --- a/0004-cgo-Handle-elaborated-typedefs-from-libclang.patch +++ b/0004-cgo-Handle-elaborated-typedefs-from-libclang.patch @@ -1,4 +1,4 @@ -From 9c3e5f72d571027689dba37cceb2a592dfcfdb5c Mon Sep 17 00:00:00 2001 +From f14269bc0794bba67ead58aebe744427879d6247 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 12 Apr 2023 04:55:27 -0400 Subject: [PATCH 4/8] cgo: Handle elaborated typedefs from libclang diff --git a/0005-Add-CPU-to-RISCV-targets.patch b/0005-Add-CPU-to-RISCV-targets.patch index ff05562..85b93bf 100644 --- a/0005-Add-CPU-to-RISCV-targets.patch +++ b/0005-Add-CPU-to-RISCV-targets.patch @@ -1,4 +1,4 @@ -From 18428dbfd276b19797cd1ec0ba36bd5d370c2477 Mon Sep 17 00:00:00 2001 +From b03f1289b1240cb743b20da13535d96bbb614736 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 13 Apr 2023 05:51:10 -0400 Subject: [PATCH 5/8] Add CPU to RISCV targets diff --git a/0006-Handle-argmemonly-attribute-change-in-LLVM16.patch b/0006-Handle-argmemonly-attribute-change-in-LLVM16.patch index 371ffb8..49ccf00 100644 --- a/0006-Handle-argmemonly-attribute-change-in-LLVM16.patch +++ b/0006-Handle-argmemonly-attribute-change-in-LLVM16.patch @@ -1,4 +1,4 @@ -From 541e5c4df0c603fb6149cd5e2607f73e8e4569cf Mon Sep 17 00:00:00 2001 +From 68ed5f52759df4d7677edb2c80e6c799377c43f6 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 15 Apr 2023 03:41:21 -0400 Subject: [PATCH 6/8] Handle argmemonly attribute change in LLVM16 diff --git a/0007-Update-types-in-cgo-tests-for-LLVM-16.patch b/0007-Update-types-in-cgo-tests-for-LLVM-16.patch index 6ae5c1b..9dd825d 100644 --- a/0007-Update-types-in-cgo-tests-for-LLVM-16.patch +++ b/0007-Update-types-in-cgo-tests-for-LLVM-16.patch @@ -1,4 +1,4 @@ -From 0219753a4b88e2cf23b5991f97aca636a965c29f Mon Sep 17 00:00:00 2001 +From a1fa0b9b2704fefb4b38bf7e527535faf19ca63a Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 15 Apr 2023 19:41:18 -0400 Subject: [PATCH 7/8] Update types in cgo tests for LLVM 16 diff --git a/0008-Update-golang.org-x-tools-to-v0.12.0.patch b/0008-Update-golang.org-x-tools-to-v0.12.0.patch index b85485b..a6e987e 100644 --- a/0008-Update-golang.org-x-tools-to-v0.12.0.patch +++ b/0008-Update-golang.org-x-tools-to-v0.12.0.patch @@ -1,4 +1,4 @@ -From b2e84ee62753b34c2323bcf520681faa82800095 Mon Sep 17 00:00:00 2001 +From 16e347a2be6dd0bce9f7b95c91dc08804df16105 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 28 Aug 2023 04:19:19 -0400 Subject: [PATCH 8/8] Update golang.org/x/tools to v0.12.0