Compare commits
3 Commits
33c56714df
...
e44d9c8bc5
| Author | SHA1 | Date |
|---|---|---|
|
|
e44d9c8bc5 | |
|
|
604f19a9ea | |
|
|
2885c1cf35 |
|
|
@ -272,9 +272,9 @@ case "$gitstatus_kernel" in
|
||||||
gitstatus_cxxflags="$gitstatus_cxxflags -I"$brew_prefix"/opt/libiconv/include"
|
gitstatus_cxxflags="$gitstatus_cxxflags -I"$brew_prefix"/opt/libiconv/include"
|
||||||
fi
|
fi
|
||||||
libgit2_cmake_flags="$libgit2_cmake_flags -DUSE_ICONV=ON"
|
libgit2_cmake_flags="$libgit2_cmake_flags -DUSE_ICONV=ON"
|
||||||
gitstatus_ldlibs="$gitstatus_ldlibs -liconv"
|
gitstatus_ldlibs="$gitstatus_ldlibs -liconv -lz"
|
||||||
gitstatus_ldflags="$gitstatus_ldflags -L${workdir}/lib"
|
gitstatus_ldflags="$gitstatus_ldflags -L${workdir}/lib"
|
||||||
libgit2_cmake_flags="$libgit2_cmake_flags -DENABLE_REPRODUCIBLE_BUILDS=OFF"
|
libgit2_cmake_flags="$libgit2_cmake_flags -DENABLE_REPRODUCIBLE_BUILDS=OFF -DUSE_BUNDLED_ZLIB=OFF"
|
||||||
;;
|
;;
|
||||||
msys*|mingw*)
|
msys*|mingw*)
|
||||||
gitstatus_ldflags="$gitstatus_ldflags ${static_pie:--static}"
|
gitstatus_ldflags="$gitstatus_ldflags ${static_pie:--static}"
|
||||||
|
|
@ -551,6 +551,7 @@ if [ -z "$gitstatus_cpu" ]; then
|
||||||
arm64|aarch64) gitstatus_cpu=armv8-a;;
|
arm64|aarch64) gitstatus_cpu=armv8-a;;
|
||||||
ppc64|ppc64le) gitstatus_cpu=powerpc64le;;
|
ppc64|ppc64le) gitstatus_cpu=powerpc64le;;
|
||||||
riscv64) gitstatus_cpu=rv64imafdc;;
|
riscv64) gitstatus_cpu=rv64imafdc;;
|
||||||
|
mips64) gitstatus_cpu=mips64;;
|
||||||
loongarch64) gitstatus_cpu=loongarch64;;
|
loongarch64) gitstatus_cpu=loongarch64;;
|
||||||
x86_64|amd64) gitstatus_cpu=x86-64;;
|
x86_64|amd64) gitstatus_cpu=x86-64;;
|
||||||
x86) gitstatus_cpu=i586;;
|
x86) gitstatus_cpu=i586;;
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,9 @@ function _p9k_worker_main() {
|
||||||
# usage: _p9k_worker_async <work> <callback>
|
# usage: _p9k_worker_async <work> <callback>
|
||||||
function _p9k_worker_async() {
|
function _p9k_worker_async() {
|
||||||
local fd async=$1
|
local fd async=$1
|
||||||
sysopen -r -o cloexec -u fd <(() { eval $async; } && print -n '\x1e') || return
|
(print -n '\x1e' &)
|
||||||
|
pid=$!
|
||||||
|
wait $pid || return 1
|
||||||
(( ++_p9k_worker_inflight[$_p9k_worker_request_id] ))
|
(( ++_p9k_worker_inflight[$_p9k_worker_request_id] ))
|
||||||
_p9k_worker_fds[$fd]=$_p9k_worker_request_id$'\x1f'$2
|
_p9k_worker_fds[$fd]=$_p9k_worker_request_id$'\x1f'$2
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue