[buildcore] Cleanup

This commit is contained in:
Gary Talent 2021-04-28 23:24:42 -05:00
parent 42aa518450
commit 8ffc2830ae
2 changed files with 5 additions and 6 deletions

View File

@ -32,7 +32,7 @@ ifdef USE_VCPKG
ifndef VCPKG_VERSION ifndef VCPKG_VERSION
VCPKG_VERSION=2020.06 VCPKG_VERSION=2020.06
endif endif
VCPKG_TOOLCHAIN=--toolchain=${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake VCPKG_TOOLCHAIN=--toolchain=${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake
endif endif
ifeq ($(OS),darwin) ifeq ($(OS),darwin)
DEBUGGER=lldb DEBUGGER=lldb
@ -116,7 +116,7 @@ else # USE_VCPKG
.PHONY: setup-conan .PHONY: setup-conan
conan-config: conan-config:
conan profile new nostalgia --detect --force conan profile new nostalgia --detect --force
ifeq ($(OS),linux) ifeq ($(OS),linux)
conan profile update settings.compiler.libcxx=libstdc++11 ${PROJECT_NAME} conan profile update settings.compiler.libcxx=libstdc++11 ${PROJECT_NAME}
endif endif

View File

@ -60,10 +60,9 @@ Result<ClawHeader> readHeader(const char *buff, std::size_t buffLen) noexcept {
} }
Result<Buffer> stripClawHeader(const char *buff, std::size_t buffLen) noexcept { Result<Buffer> stripClawHeader(const char *buff, std::size_t buffLen) noexcept {
auto header = detail::readHeader(buff, buffLen); oxRequire(header, detail::readHeader(buff, buffLen));
oxReturnError(header); Buffer out(header.dataSize);
Buffer out(header.value.dataSize); ox_memcpy(out.data(), header.data, out.size());
ox_memcpy(out.data(), header.value.data, out.size());
return move(out); return move(out);
} }