mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-28 05:32:35 +00:00
bump(main/wasmedge): 0.15.0
This commit is contained in:
@@ -3,10 +3,10 @@ TERMUX_PKG_DESCRIPTION="A lightweight, high-performance, and extensible WebAssem
|
||||
TERMUX_PKG_LICENSE="Apache-2.0"
|
||||
TERMUX_PKG_LICENSE_FILE="LICENSE, LICENSE.spdx"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="0.14.1"
|
||||
TERMUX_PKG_VERSION="0.15.0"
|
||||
# Use source tarball from release assets to get VERSION file for proper version number
|
||||
TERMUX_PKG_SRCURL=https://github.com/WasmEdge/WasmEdge/releases/download/${TERMUX_PKG_VERSION}/WasmEdge-${TERMUX_PKG_VERSION}-src.tar.gz
|
||||
TERMUX_PKG_SHA256=e5a944975fb949ecda73d6fe80a86507deb2d0a221b2274338807b63758350b4
|
||||
TERMUX_PKG_SHA256=17915c4d047bc7a02aca862f4852101ec8d35baab7b659593687ab8c84b00938
|
||||
TERMUX_PKG_DEPENDS="libc++, libspdlog"
|
||||
TERMUX_PKG_AUTO_UPDATE=true
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
|
||||
@@ -16,7 +16,7 @@ index dbfaad64..d1e6846f 100644
|
||||
constexpr VariadicUnion(std::in_place_index_t<N>, Args &&...Values)
|
||||
@@ -43,28 +45,28 @@ union VariadicUnion<FirstT, RestT...> {
|
||||
|
||||
template <typename T> constexpr const T &get() const &noexcept {
|
||||
template <typename T> constexpr const T &get() const & noexcept {
|
||||
if constexpr (std::is_same_v<T, FirstT>) {
|
||||
- return First;
|
||||
+ return *std::launder(reinterpret_cast<const FirstT *>(&First));
|
||||
@@ -24,7 +24,7 @@ index dbfaad64..d1e6846f 100644
|
||||
return Rest.template get<T>();
|
||||
}
|
||||
}
|
||||
template <typename T> constexpr T &get() &noexcept {
|
||||
template <typename T> constexpr T &get() & noexcept {
|
||||
if constexpr (std::is_same_v<T, FirstT>) {
|
||||
- return First;
|
||||
+ return *std::launder(reinterpret_cast<FirstT *>(&First));
|
||||
@@ -32,7 +32,7 @@ index dbfaad64..d1e6846f 100644
|
||||
return Rest.template get<T>();
|
||||
}
|
||||
}
|
||||
template <typename T> constexpr const T &&get() const &&noexcept {
|
||||
template <typename T> constexpr const T &&get() const && noexcept {
|
||||
if constexpr (std::is_same_v<T, FirstT>) {
|
||||
- return std::move(First);
|
||||
+ return std::move(*std::launder(reinterpret_cast<const FirstT *>(&First)));
|
||||
@@ -40,7 +40,7 @@ index dbfaad64..d1e6846f 100644
|
||||
return std::move(Rest).template get<T>();
|
||||
}
|
||||
}
|
||||
template <typename T> constexpr T &&get() &&noexcept {
|
||||
template <typename T> constexpr T &&get() && noexcept {
|
||||
if constexpr (std::is_same_v<T, FirstT>) {
|
||||
- return std::move(First);
|
||||
+ return std::move(*std::launder(reinterpret_cast<FirstT *>(&First)));
|
||||
@@ -48,7 +48,7 @@ index dbfaad64..d1e6846f 100644
|
||||
return std::move(Rest).template get<T>();
|
||||
}
|
||||
@@ -74,7 +76,7 @@ union VariadicUnion<FirstT, RestT...> {
|
||||
constexpr T &emplace(Args &&...Values) &noexcept {
|
||||
constexpr T &emplace(Args &&...Values) & noexcept {
|
||||
if constexpr (std::is_same_v<T, FirstT>) {
|
||||
::new (&First) FirstT(std::forward<Args>(Values)...);
|
||||
- return *std::launder(&First);
|
||||
@@ -57,7 +57,7 @@ index dbfaad64..d1e6846f 100644
|
||||
return Rest.template emplace<T>(std::forward<Args>(Values)...);
|
||||
}
|
||||
@@ -84,13 +86,13 @@ union VariadicUnion<FirstT, RestT...> {
|
||||
constexpr T &emplace(Args &&...Values) &&noexcept {
|
||||
constexpr T &emplace(Args &&...Values) && noexcept {
|
||||
if constexpr (std::is_same_v<T, FirstT>) {
|
||||
::new (&First) FirstT(std::forward<Args>(Values)...);
|
||||
- return std::move(*std::launder(&First));
|
||||
|
||||
Reference in New Issue
Block a user