Compare commits

...

2 Commits

Author SHA1 Message Date
a53d1f87ee [Makefile] Add targets for build-pack and build-gba-player, update pkg-gba target to use them
All checks were successful
Build / build (push) Successful in 1m20s
2025-10-01 00:30:41 -05:00
7b5c760974 [ox/std] Ignore broken GCC warning
All checks were successful
Build / build (push) Successful in 1m24s
2025-09-20 13:57:45 -05:00
2 changed files with 18 additions and 1 deletions

View File

@@ -15,16 +15,26 @@ else
endif
.PHONY: pkg-gba
pkg-gba: build
pkg-gba: build-pack build-gba-player
${BC_CMD_ENVRUN} ${BC_PY3} deps/nostalgia/util/scripts/pkg-gba.py project ${BC_VAR_PROJECT_NAME_CAP}
.PHONY: pkg-mac
pkg-mac: install
${BC_CMD_ENVRUN} ${BC_PY3} deps/nostalgia/util/scripts/pkg-dmg.py JasperStudio
.PHONY: build-gba-player
build-gba-player:
cmake --build ./build/gba-*
.PHONY: build-player
build-player:
${BC_CMD_CMAKE_BUILD} ${BC_VAR_BUILD_PATH} ${BC_VAR_PROJECT_NAME_CAP}
.PHONY: build-pack
build-pack:
cmake --build ./build/${BC_VAR_CURRENT_BUILD} --target ${BC_VAR_PROJECT_NAME}-pack
.PHONY: run
run: build-player
${PROJECT_PLAYER} project

View File

@@ -57,7 +57,14 @@ struct VectorAllocator {
if (cap <= m_data.size() && count <= m_data.size()) {
for (auto i = 0u; i < count; ++i) {
auto const srcItem = std::launder(reinterpret_cast<T*>(&src->m_data[i]));
#if defined(__GNUC__) && __GNUC__ >= 12
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow="
#endif
new (&m_data[i]) T(std::move(*srcItem));
#if defined(__GNUC__) && __GNUC__ >= 12
#pragma GCC diagnostic pop
#endif
}
if (count) {
*items = std::launder(reinterpret_cast<T*>(m_data.data()));