On 28.12.2021 11:27, atler wrote:
commit 8fdaf5810d85f437399e3c22d7a010d39d5c2093
Author: Jan Palus <at...@pld-linux.org>
Date:   Tue Dec 28 10:27:12 2021 +0100

     allow overriding GOARCH/GOARM/GOOS

  macros.go | 26 +++++++++++++-------------
  1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/macros.go b/macros.go
index e1624a1..07efe21 100644
--- a/macros.go
+++ b/macros.go
@@ -2,34 +2,34 @@
%__go \\\
  %ifarch aarch64 \
-       GOARCH=arm64 \\\
+       GOARCH=${GOARCH-arm64} \\\

you probably want empty value be treated as not defined:


```


$ (GOARCH=; echo ${GOARCH-arm})

$ (GOARCH=; echo ${GOARCH:-arm})
arm

$

```


_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to