shells/starship: Update 1.14.1 → 1.15.0

Reported by:	portscout
This commit is contained in:
Yuri Victorovich
2023-06-06 17:11:06 -07:00
parent fc32440b3d
commit b724f6c6a1
5 changed files with 649 additions and 732 deletions
+216 -216
View File
@@ -1,6 +1,5 @@
PORTNAME= starship
DISTVERSION= 1.14.1
PORTREVISION= 1
DISTVERSION= 1.15.0
CATEGORIES= shells
MASTER_SITES= CRATESIO
DISTFILES= ${CARGO_DIST_SUBDIR}/${DISTNAME}${CARGO_CRATE_EXT}
@@ -20,387 +19,388 @@ LIB_DEPENDS= libgit2.so:devel/libgit2 \
USES= cargo ssl
CARGO_CRATES= adler-1.0.2 \
ahash-0.7.6 \
ahash-0.8.1 \
aho-corasick-0.7.18 \
android_system_properties-0.1.4 \
anstream-0.2.6 \
anstyle-0.3.5 \
anstyle-parse-0.1.1 \
anstyle-wincon-0.2.0 \
anyhow-1.0.62 \
arc-swap-1.5.1 \
ahash-0.8.3 \
aho-corasick-1.0.0 \
android-tzdata-0.1.1 \
android_system_properties-0.1.5 \
anstream-0.3.0 \
anstyle-1.0.0 \
anstyle-parse-0.2.0 \
anstyle-query-1.0.0 \
anstyle-wincon-1.0.0 \
anyhow-1.0.70 \
arc-swap-1.6.0 \
arrayvec-0.7.2 \
async-broadcast-0.5.0 \
async-executor-1.5.0 \
async-io-1.12.0 \
async-lock-2.6.0 \
async-recursion-1.0.0 \
async-task-4.3.0 \
async-trait-0.1.59 \
async-broadcast-0.5.1 \
async-channel-1.8.0 \
async-executor-1.5.1 \
async-fs-1.6.0 \
async-io-1.13.0 \
async-lock-2.7.0 \
async-recursion-1.0.4 \
async-task-4.4.0 \
async-trait-0.1.68 \
atomic-waker-1.1.1 \
autocfg-1.1.0 \
base64-0.13.0 \
base64-0.13.1 \
bitflags-1.3.2 \
bitflags-2.2.1 \
block-0.1.6 \
block-buffer-0.9.0 \
block-buffer-0.10.2 \
bstr-1.3.0 \
block-buffer-0.10.4 \
blocking-1.3.1 \
bstr-1.4.0 \
btoi-0.4.3 \
bumpalo-3.12.0 \
byteorder-1.4.3 \
bytesize-1.1.0 \
cc-1.0.73 \
cfg-if-0.1.10 \
bytesize-1.2.0 \
cc-1.0.79 \
cfg-if-1.0.0 \
chrono-0.4.24 \
clap-4.2.1 \
clap_builder-4.2.1 \
clap_complete-4.2.0 \
clap_derive-4.2.0 \
clap_lex-0.4.0 \
chrono-0.4.26 \
clap-4.3.2 \
clap_builder-4.3.1 \
clap_complete-4.3.1 \
clap_derive-4.3.2 \
clap_lex-0.5.0 \
clru-0.6.1 \
cmake-0.1.48 \
concolor-override-1.0.0 \
concolor-query-0.3.3 \
concurrent-queue-2.0.0 \
const_format-0.2.26 \
const_format_proc_macros-0.2.22 \
core-foundation-0.7.0 \
core-foundation-sys-0.7.0 \
core-foundation-sys-0.8.3 \
cpufeatures-0.2.5 \
cmake-0.1.50 \
codespan-reporting-0.11.1 \
colorchoice-1.0.0 \
concurrent-queue-2.2.0 \
const-random-0.1.15 \
const-random-macro-0.1.15 \
const_format-0.2.30 \
const_format_proc_macros-0.2.29 \
core-foundation-0.9.3 \
core-foundation-sys-0.8.4 \
cpufeatures-0.2.6 \
crc32fast-1.3.2 \
crossbeam-0.8.2 \
crossbeam-channel-0.5.6 \
crossbeam-deque-0.8.2 \
crossbeam-epoch-0.9.10 \
crossbeam-channel-0.5.8 \
crossbeam-deque-0.8.3 \
crossbeam-epoch-0.9.14 \
crossbeam-queue-0.3.8 \
crossbeam-utils-0.8.11 \
crossbeam-utils-0.8.15 \
crunchy-0.2.2 \
crypto-common-0.1.6 \
cxx-1.0.94 \
cxx-build-1.0.94 \
cxxbridge-flags-1.0.94 \
cxxbridge-macro-1.0.94 \
deelevate-0.2.0 \
derivative-2.2.0 \
difflib-0.4.0 \
digest-0.9.0 \
digest-0.10.6 \
dirs-2.0.2 \
dirs-4.0.0 \
dirs-next-2.0.0 \
dirs-sys-0.3.7 \
dirs-sys-next-0.1.2 \
dlv-list-0.3.0 \
dlv-list-0.5.0 \
downcast-0.11.0 \
dunce-1.0.3 \
dyn-clone-1.0.9 \
either-1.8.0 \
enumflags2-0.7.5 \
enumflags2_derive-0.7.4 \
dunce-1.0.4 \
dyn-clone-1.0.11 \
either-1.8.1 \
enumflags2-0.7.6 \
enumflags2_derive-0.7.6 \
errno-0.2.8 \
errno-0.3.0 \
errno-0.3.1 \
errno-dragonfly-0.1.2 \
event-listener-2.5.3 \
fastrand-1.8.0 \
fastrand-1.9.0 \
filedescriptor-0.8.2 \
filetime-0.2.17 \
flate2-1.0.24 \
filetime-0.2.21 \
flate2-1.0.25 \
float-cmp-0.9.0 \
fnv-1.0.7 \
form_urlencoded-1.0.1 \
fragile-1.2.2 \
form_urlencoded-1.1.0 \
fragile-2.0.0 \
futures-core-0.3.25 \
futures-io-0.3.23 \
futures-lite-1.12.0 \
futures-sink-0.3.25 \
futures-task-0.3.25 \
futures-util-0.3.25 \
generic-array-0.14.6 \
gethostname-0.4.1 \
getrandom-0.1.16 \
getrandom-0.2.7 \
gix-0.43.1 \
gix-actor-0.19.0 \
gix-attributes-0.10.0 \
gix-bitmap-0.2.2 \
futures-core-0.3.28 \
futures-io-0.3.28 \
futures-lite-1.13.0 \
futures-sink-0.3.28 \
futures-task-0.3.28 \
futures-util-0.3.28 \
generic-array-0.14.7 \
gethostname-0.4.3 \
getrandom-0.2.9 \
gix-0.44.1 \
gix-actor-0.20.0 \
gix-attributes-0.12.0 \
gix-bitmap-0.2.3 \
gix-chunk-0.4.1 \
gix-command-0.2.4 \
gix-config-0.20.1 \
gix-config-value-0.10.2 \
gix-credentials-0.12.0 \
gix-date-0.4.3 \
gix-diff-0.28.1 \
gix-discover-0.16.2 \
gix-features-0.28.1 \
gix-glob-0.5.5 \
gix-hash-0.10.3 \
gix-hashtable-0.1.2 \
gix-index-0.15.1 \
gix-config-0.22.0 \
gix-config-value-0.12.0 \
gix-credentials-0.14.0 \
gix-date-0.5.0 \
gix-diff-0.29.0 \
gix-discover-0.18.0 \
gix-features-0.29.0 \
gix-fs-0.1.1 \
gix-glob-0.7.0 \
gix-hash-0.11.1 \
gix-hashtable-0.2.0 \
gix-ignore-0.2.0 \
gix-index-0.16.0 \
gix-lock-5.0.0 \
gix-mailmap-0.11.0 \
gix-object-0.28.0 \
gix-odb-0.43.1 \
gix-pack-0.33.2 \
gix-path-0.7.3 \
gix-prompt-0.3.3 \
gix-mailmap-0.12.0 \
gix-object-0.29.1 \
gix-odb-0.45.0 \
gix-pack-0.35.0 \
gix-path-0.8.0 \
gix-prompt-0.5.0 \
gix-quote-0.4.3 \
gix-ref-0.27.2 \
gix-refspec-0.9.0 \
gix-revision-0.12.1 \
gix-sec-0.6.2 \
gix-tempfile-5.0.0 \
gix-traverse-0.24.0 \
gix-url-0.16.0 \
gix-ref-0.29.0 \
gix-refspec-0.10.1 \
gix-revision-0.13.0 \
gix-sec-0.8.0 \
gix-tempfile-5.0.2 \
gix-traverse-0.25.0 \
gix-url-0.18.0 \
gix-utils-0.1.1 \
gix-validate-0.7.4 \
gix-worktree-0.15.2 \
gix-worktree-0.17.0 \
guess_host_triple-0.1.3 \
hashbrown-0.12.3 \
hashbrown-0.13.1 \
hashbrown-0.13.2 \
heck-0.3.3 \
heck-0.4.0 \
hermit-abi-0.1.19 \
heck-0.4.1 \
hermit-abi-0.2.6 \
hermit-abi-0.3.1 \
hex-0.4.3 \
home-0.5.4 \
iana-time-zone-0.1.46 \
idna-0.2.3 \
home-0.5.5 \
iana-time-zone-0.1.56 \
iana-time-zone-haiku-0.1.1 \
idna-0.3.0 \
imara-diff-0.1.5 \
indexmap-1.9.3 \
instant-0.1.12 \
io-close-0.3.7 \
io-lifetimes-1.0.1 \
is-terminal-0.4.5 \
io-lifetimes-1.0.10 \
is-docker-0.2.0 \
is-terminal-0.4.7 \
is-wsl-0.4.0 \
is_debug-1.0.1 \
itertools-0.10.5 \
itoa-1.0.3 \
js-sys-0.3.59 \
itoa-1.0.6 \
js-sys-0.3.61 \
jwalk-0.8.1 \
kstring-2.0.0 \
lazy_static-1.4.0 \
lazycell-1.3.0 \
libc-0.2.140 \
libz-ng-sys-1.1.8 \
libc-0.2.141 \
libz-ng-sys-1.1.9 \
libz-sys-1.1.8 \
link-cplusplus-1.0.8 \
linked-hash-map-0.5.6 \
linux-raw-sys-0.1.3 \
linux-raw-sys-0.3.0 \
lock_api-0.4.8 \
log-0.4.17 \
linux-raw-sys-0.3.4 \
lock_api-0.4.9 \
log-0.4.18 \
mac-notification-sys-0.5.6 \
mach-0.3.2 \
mach2-0.4.1 \
malloc_buf-0.0.6 \
matches-0.1.9 \
memchr-2.5.0 \
memmap2-0.5.7 \
memmap2-0.5.10 \
memmem-0.1.1 \
memoffset-0.6.5 \
memoffset-0.7.1 \
memoffset-0.8.0 \
minimal-lexical-0.2.1 \
miniz_oxide-0.5.3 \
mockall-0.11.2 \
mockall_derive-0.11.2 \
nix-0.23.1 \
nix-0.25.0 \
miniz_oxide-0.6.2 \
mockall-0.11.4 \
mockall_derive-0.11.4 \
nix-0.26.2 \
nom-5.1.2 \
nom-7.1.1 \
nom-7.1.3 \
normalize-line-endings-0.3.0 \
notify-rust-4.8.0 \
nu-ansi-term-0.47.0 \
nu-ansi-term-0.48.0 \
num-derive-0.3.3 \
num-integer-0.1.45 \
num-traits-0.2.15 \
num_cpus-1.13.1 \
num_cpus-1.15.0 \
num_threads-0.1.6 \
objc-0.2.7 \
objc-foundation-0.1.1 \
objc_id-0.1.1 \
once_cell-1.17.1 \
once_cell-1.18.0 \
opaque-debug-0.3.0 \
open-4.0.1 \
open-4.1.0 \
ordered-float-2.10.0 \
ordered-multimap-0.4.3 \
ordered-multimap-0.6.0 \
ordered-stream-0.2.0 \
os_info-3.7.0 \
parking-2.0.0 \
parking-2.1.0 \
parking_lot-0.12.1 \
parking_lot_core-0.9.3 \
parking_lot_core-0.9.7 \
path-slash-0.2.1 \
pathdiff-0.2.1 \
pathsearch-0.2.0 \
percent-encoding-2.1.0 \
pest-2.5.7 \
pest_derive-2.5.7 \
pest_generator-2.5.7 \
pest_meta-2.5.7 \
phf-0.8.0 \
phf_codegen-0.8.0 \
phf_generator-0.8.0 \
phf_shared-0.8.0 \
percent-encoding-2.2.0 \
pest-2.6.0 \
pest_derive-2.6.0 \
pest_generator-2.6.0 \
pest_meta-2.6.0 \
phf-0.11.1 \
phf_codegen-0.11.1 \
phf_generator-0.11.1 \
phf_shared-0.11.1 \
pin-project-lite-0.2.9 \
pin-utils-0.1.0 \
pkg-config-0.3.25 \
polling-2.3.0 \
ppv-lite86-0.2.16 \
predicates-2.1.1 \
predicates-core-1.0.3 \
predicates-tree-1.0.5 \
proc-macro-crate-1.2.1 \
proc-macro2-1.0.52 \
pkg-config-0.3.26 \
polling-2.7.0 \
ppv-lite86-0.2.17 \
predicates-2.1.5 \
predicates-core-1.0.6 \
predicates-tree-1.0.9 \
proc-macro-crate-1.3.1 \
proc-macro-hack-0.5.20+deprecated \
proc-macro2-1.0.56 \
process_control-4.0.3 \
prodash-23.1.0 \
prodash-23.1.2 \
quick-xml-0.23.1 \
quick-xml-0.28.1 \
quick-xml-0.28.2 \
quote-1.0.26 \
rand-0.7.3 \
rand-0.8.5 \
rand_chacha-0.2.2 \
rand_chacha-0.3.1 \
rand_core-0.5.1 \
rand_core-0.6.3 \
rand_hc-0.2.0 \
rand_pcg-0.2.1 \
rand_core-0.6.4 \
rayon-1.7.0 \
rayon-core-1.11.0 \
redox_syscall-0.2.16 \
redox_syscall-0.3.5 \
redox_users-0.4.3 \
regex-1.7.3 \
regex-1.8.4 \
regex-automata-0.1.10 \
regex-syntax-0.6.29 \
rust-ini-0.18.0 \
rustix-0.36.4 \
rustix-0.37.4 \
ryu-1.0.11 \
regex-syntax-0.7.2 \
rust-ini-0.19.0 \
rustix-0.37.13 \
ryu-1.0.13 \
same-file-1.0.6 \
schemars-0.8.12 \
schemars_derive-0.8.12 \
scopeguard-1.1.0 \
scratch-1.0.5 \
semver-0.11.0 \
semver-1.0.17 \
semver-parser-0.10.2 \
serde-1.0.159 \
serde_derive-1.0.159 \
serde-1.0.163 \
serde_derive-1.0.163 \
serde_derive_internals-0.26.0 \
serde_json-1.0.95 \
serde_repr-0.1.9 \
serde_spanned-0.6.1 \
serde_json-1.0.96 \
serde_repr-0.1.12 \
serde_spanned-0.6.2 \
sha1-0.10.5 \
sha1-asm-0.5.1 \
sha1_smol-1.0.0 \
sha2-0.9.9 \
sha2-0.10.6 \
shadow-rs-0.21.0 \
shadow-rs-0.22.0 \
shared_library-0.1.9 \
shell-words-1.1.0 \
signal-hook-0.1.17 \
signal-hook-0.3.14 \
signal-hook-registry-1.4.0 \
signal-hook-0.3.15 \
signal-hook-registry-1.4.1 \
siphasher-0.3.10 \
slab-0.4.7 \
smallvec-1.9.0 \
socket2-0.4.6 \
starship-battery-0.7.9 \
slab-0.4.8 \
smallvec-1.10.0 \
socket2-0.4.9 \
starship-battery-0.8.0 \
static_assertions-1.1.0 \
strsim-0.10.0 \
strum-0.22.0 \
strum_macros-0.22.0 \
syn-1.0.104 \
syn-2.0.8 \
syn-1.0.109 \
syn-2.0.14 \
systemstat-0.2.3 \
tauri-winrt-notification-0.1.0 \
tempfile-3.5.0 \
termcolor-1.2.0 \
terminal_size-0.2.6 \
terminfo-0.7.3 \
terminfo-0.7.5 \
termios-0.3.3 \
termtree-0.2.4 \
termtree-0.4.1 \
termwiz-0.15.0 \
thiserror-1.0.38 \
thiserror-impl-1.0.38 \
time-0.3.17 \
thiserror-1.0.40 \
thiserror-impl-1.0.40 \
time-0.3.20 \
time-core-0.1.0 \
time-macros-0.2.6 \
time-macros-0.2.8 \
tiny-keccak-2.0.2 \
tinyvec-1.6.0 \
tinyvec_macros-0.1.0 \
tinyvec_macros-0.1.1 \
toml-0.5.11 \
toml-0.7.3 \
toml_datetime-0.6.1 \
toml_edit-0.19.8 \
toml-0.7.4 \
toml_datetime-0.6.2 \
toml_edit-0.19.10 \
tracing-0.1.37 \
tracing-attributes-0.1.23 \
tracing-core-0.1.30 \
typenum-1.15.0 \
typenum-1.16.0 \
ucd-trie-0.1.5 \
uds_windows-1.0.2 \
uluru-3.0.0 \
unicase-2.6.0 \
unicode-bidi-0.3.8 \
unicode-bom-1.1.4 \
unicode-ident-1.0.3 \
unicode-normalization-0.1.21 \
unicode-bidi-0.3.13 \
unicode-bom-2.0.2 \
unicode-ident-1.0.8 \
unicode-normalization-0.1.22 \
unicode-segmentation-1.10.1 \
unicode-width-0.1.10 \
unicode-xid-0.2.3 \
uom-0.30.0 \
url-2.2.2 \
unicode-xid-0.2.4 \
uom-0.34.0 \
url-2.3.1 \
urlencoding-2.1.2 \
utf8parse-0.2.1 \
vcpkg-0.2.15 \
version_check-0.9.4 \
versions-4.1.0 \
versions-5.0.0 \
vtparse-0.6.2 \
waker-fn-1.1.0 \
walkdir-2.3.2 \
wasi-0.9.0+wasi-snapshot-preview1 \
walkdir-2.3.3 \
wasi-0.11.0+wasi-snapshot-preview1 \
wasm-bindgen-0.2.82 \
wasm-bindgen-backend-0.2.82 \
wasm-bindgen-macro-0.2.82 \
wasm-bindgen-macro-support-0.2.82 \
wasm-bindgen-shared-0.2.82 \
wepoll-ffi-0.1.2 \
wasm-bindgen-0.2.84 \
wasm-bindgen-backend-0.2.84 \
wasm-bindgen-macro-0.2.84 \
wasm-bindgen-macro-support-0.2.84 \
wasm-bindgen-shared-0.2.84 \
which-4.4.0 \
winapi-0.3.9 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-util-0.1.5 \
winapi-x86_64-pc-windows-gnu-0.4.0 \
windows-0.39.0 \
windows-0.43.0 \
windows-0.48.0 \
windows-sys-0.36.1 \
windows-sys-0.42.0 \
windows-sys-0.45.0 \
windows-sys-0.48.0 \
windows-targets-0.42.2 \
windows-targets-0.48.0 \
windows_aarch64_gnullvm-0.42.2 \
windows_aarch64_gnullvm-0.48.0 \
windows_aarch64_msvc-0.36.1 \
windows_aarch64_msvc-0.39.0 \
windows_aarch64_msvc-0.42.2 \
windows_aarch64_msvc-0.48.0 \
windows_i686_gnu-0.36.1 \
windows_i686_gnu-0.39.0 \
windows_i686_gnu-0.42.2 \
windows_i686_gnu-0.48.0 \
windows_i686_msvc-0.36.1 \
windows_i686_msvc-0.39.0 \
windows_i686_msvc-0.42.2 \
windows_i686_msvc-0.48.0 \
windows_x86_64_gnu-0.36.1 \
windows_x86_64_gnu-0.39.0 \
windows_x86_64_gnu-0.42.2 \
windows_x86_64_gnu-0.48.0 \
windows_x86_64_gnullvm-0.42.2 \
windows_x86_64_gnullvm-0.48.0 \
windows_x86_64_msvc-0.36.1 \
windows_x86_64_msvc-0.39.0 \
windows_x86_64_msvc-0.42.2 \
windows_x86_64_msvc-0.48.0 \
winnow-0.4.0 \
winnow-0.4.6 \
winres-0.1.12 \
yaml-rust-0.4.5 \
zbus-3.10.0 \
zbus_macros-3.10.0 \
zbus-3.11.1 \
zbus_macros-3.11.1 \
zbus_names-2.5.0 \
zvariant-3.10.0 \
zvariant_derive-3.10.0
zvariant-3.12.0 \
zvariant_derive-3.12.0 \
zvariant_utils-1.0.0
#CARGO_FEATURES= notify-rust
PLIST_FILES= bin/${PORTNAME}
+433 -431
View File
File diff suppressed because it is too large Load Diff
@@ -1,11 +0,0 @@
--- cargo-crates/libz-ng-sys-1.1.8/src/zlib-ng/arch/power/chunkset_power8.c.orig 2022-12-29 16:08:43 UTC
+++ cargo-crates/libz-ng-sys-1.1.8/src/zlib-ng/arch/power/chunkset_power8.c
@@ -27,7 +27,7 @@ static inline void chunkmemset_4(uint8_t *from, chunk_
}
static inline void chunkmemset_8(uint8_t *from, chunk_t *chunk) {
- uint64_t tmp;
+ unsigned long long tmp;
zmemcpy_8(&tmp, from);
*chunk = (vector unsigned char)vec_splats(tmp);
}
@@ -1,36 +0,0 @@
--- cargo-crates/libz-ng-sys-1.1.8/src/zlib-ng/arch/power/power_features.c.orig 1973-11-29 21:33:09 UTC
+++ cargo-crates/libz-ng-sys-1.1.8/src/zlib-ng/arch/power/power_features.c
@@ -7,6 +7,9 @@
#ifdef HAVE_SYS_AUXV_H
# include <sys/auxv.h>
#endif
+#ifdef __FreeBSD__
+#include <machine/cpu.h>
+#endif
#include "../../zbuild.h"
#include "power_features.h"
@@ -17,7 +20,11 @@ Z_INTERNAL int power_cpu_has_arch_3_00 = 0;
void Z_INTERNAL power_check_features(void) {
#ifdef PPC_FEATURES
unsigned long hwcap;
+#ifdef __FreeBSD__
+ elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap));
+#else
hwcap = getauxval(AT_HWCAP);
+#endif
if (hwcap & PPC_FEATURE_HAS_ALTIVEC)
power_cpu_has_altivec = 1;
@@ -25,7 +32,11 @@ void Z_INTERNAL power_check_features(void) {
#ifdef POWER_FEATURES
unsigned long hwcap2;
+#ifdef __FreeBSD__
+ elf_aux_info(AT_HWCAP2, &hwcap2, sizeof(hwcap2));
+#else
hwcap2 = getauxval(AT_HWCAP2);
+#endif
if (hwcap2 & PPC_FEATURE2_ARCH_2_07)
power_cpu_has_arch_2_07 = 1;
@@ -1,38 +0,0 @@
--- cargo-crates/libz-ng-sys-1.1.8/src/zlib-ng/cmake/detect-intrinsics.cmake.orig 1973-11-29 21:33:09 UTC
+++ cargo-crates/libz-ng-sys-1.1.8/src/zlib-ng/cmake/detect-intrinsics.cmake
@@ -280,8 +280,17 @@ macro(check_ppc_intrinsics)
set(CMAKE_REQUIRED_FLAGS "${PPCFLAGS} ${NATIVEFLAG}")
check_c_source_compiles(
"#include <sys/auxv.h>
+ #ifdef __FreeBSD__
+ #include <machine/cpu.h>
+ #endif
int main() {
+ #ifdef __FreeBSD__
+ unsigned long hwcap;
+ elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap));
+ return (hwcap & PPC_FEATURE_HAS_ALTIVEC);
+ #else
return (getauxval(AT_HWCAP) & PPC_FEATURE_HAS_ALTIVEC);
+ #endif
}"
HAVE_VMX
)
@@ -298,8 +307,17 @@ macro(check_power8_intrinsics)
set(CMAKE_REQUIRED_FLAGS "${POWER8FLAG} ${NATIVEFLAG}")
check_c_source_compiles(
"#include <sys/auxv.h>
+ #ifdef __FreeBSD__
+ #include <machine/cpu.h>
+ #endif
int main() {
+ #ifdef __FreeBSD__
+ unsigned long hwcap;
+ elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap));
+ return (hwcap & PPC_FEATURE2_ARCH_2_07);
+ #else
return (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07);
+ #endif
}"
HAVE_POWER8_INTRIN
)