aboutsummaryrefslogtreecommitdiff
path: root/ci/drone/linux_script_build
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2021-10-04 14:03:49 -0400
committerMichael Dusan <michael.dusan@gmail.com>2021-10-04 19:18:19 -0400
commit4e590fadb5367d0400fd7e192f519caf3435e07b (patch)
tree75a2704e05a316a4c557c8a5c97a653f2fa9fd20 /ci/drone/linux_script_build
parent65e4926c5b6ca936b460afd1d1e43474b2bc320d (diff)
downloadzig-4e590fadb5367d0400fd7e192f519caf3435e07b.tar.gz
zig-4e590fadb5367d0400fd7e192f519caf3435e07b.zip
ci drone: enable more testsuite
Upstream LLVM fixes #8597, no longer need `-Dskip-debug` and others. Additionally, due to the nature of drone.io server pool, it is beneficial to know which aarch64 CPU brand is in use. - drop `-Dskip-debug` and others - invoke `lscpu` prior to build - enable more testsuite consistent with ci azure - remove workaround for (already closed) #6830 closes #8597
Diffstat (limited to 'ci/drone/linux_script_build')
-rwxr-xr-xci/drone/linux_script_build8
1 files changed, 7 insertions, 1 deletions
diff --git a/ci/drone/linux_script_build b/ci/drone/linux_script_build
index 179988f6e3..58dad5f14c 100755
--- a/ci/drone/linux_script_build
+++ b/ci/drone/linux_script_build
@@ -2,6 +2,13 @@
. ./ci/drone/linux_script_base
+# Probe CPU/brand details.
+# TODO: `lscpu` is changing package names in EDGE to `util-linux-misc`
+apk update
+apk add util-linux
+echo "lscpu:"
+lscpu | sed 's,^, : ,'
+
PREFIX="/deps/local"
ZIG="$PREFIX/bin/zig"
TARGET="$TRIPLEARCH-linux-musl"
@@ -13,7 +20,6 @@ export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
# The `CMAKE_AR` parameter will consider any spaces to
# be part of the executable path rather than CLI args, so we have
# to create wrapper scripts for `zig ar` and zig ranlib`.
-
cat <<'ENDFILE' >$PREFIX/bin/ar
#!/bin/sh
/deps/local/bin/zig ar $@