diff options
author | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
commit | 404aeae4545d2426c089a5f8d5e82dae56f5212b (patch) | |
tree | 2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/github.com/klauspost/cpuid/v2/test-architectures.sh | |
parent | 209d8b0187ed025dec9ac149ebcced3462877bff (diff) | |
download | gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip |
Make Nix builds work
Diffstat (limited to 'vendor/github.com/klauspost/cpuid/v2/test-architectures.sh')
-rw-r--r-- | vendor/github.com/klauspost/cpuid/v2/test-architectures.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/klauspost/cpuid/v2/test-architectures.sh b/vendor/github.com/klauspost/cpuid/v2/test-architectures.sh new file mode 100644 index 0000000..471d986 --- /dev/null +++ b/vendor/github.com/klauspost/cpuid/v2/test-architectures.sh | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e | ||
4 | |||
5 | go tool dist list | while IFS=/ read os arch; do | ||
6 | echo "Checking $os/$arch..." | ||
7 | echo " normal" | ||
8 | GOARCH=$arch GOOS=$os go build -o /dev/null . | ||
9 | echo " noasm" | ||
10 | GOARCH=$arch GOOS=$os go build -tags noasm -o /dev/null . | ||
11 | echo " appengine" | ||
12 | GOARCH=$arch GOOS=$os go build -tags appengine -o /dev/null . | ||
13 | echo " noasm,appengine" | ||
14 | GOARCH=$arch GOOS=$os go build -tags 'appengine noasm' -o /dev/null . | ||
15 | done | ||