Skip to content

Commit

Permalink
sync bela
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Jan 4, 2025
1 parent c74dd4d commit dacf982
Show file tree
Hide file tree
Showing 85 changed files with 4,065 additions and 884 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Please delete them.")
endif()

set(CMAKE_C_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED YES)

set(BELAUTILS_ENABLE_LTO OFF)
Expand Down
2 changes: 1 addition & 1 deletion vendor/bela.lock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/fcharlie/bela/tree/bec4b4ae18a7158c2060d1f0d73f042579f30b4e
https://github.com/fcharlie/bela/tree/5565e770ec209510945a3c46a6bdfd33e231392c
10 changes: 6 additions & 4 deletions vendor/bela/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# bela sources
cmake_minimum_required(VERSION 3.22)
cmake_minimum_required(VERSION 3.27)

project(bela CXX C ASM)

include(FeatureSummary)

if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE)
message(
FATAL_ERROR
Expand All @@ -21,11 +23,11 @@ option(BELA_ENABLE_ASSEMBLY_FILES "bela enable assembly files" OFF)
message(STATUS "CMAKE_ASM_COMPILER_ID ${CMAKE_ASM_COMPILER_ID}")

if(NOT (DEFINED CMAKE_CXX_STANDARD))
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
endif()

if(CMAKE_CXX_STANDARD LESS 20 OR CMAKE_CXX_STANDARD STREQUAL "98")
message(FATAL_ERROR "Bela requires C++20 or later")
if(CMAKE_CXX_STANDARD LESS 23 OR CMAKE_CXX_STANDARD STREQUAL "98")
message(FATAL_ERROR "Bela requires C++23 or later")
endif()

set(CMAKE_CXX_STANDARD_REQUIRED YES)
Expand Down
2 changes: 1 addition & 1 deletion vendor/bela/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![license badge](https://img.shields.io/github/license/fcharlie/bela.svg)](LICENSE)
[![Master Branch Status](https://github.com/fcharlie/bela/workflows/BelaCI/badge.svg)](https://github.com/fcharlie/bela/actions)

Modern C++20 library collection, better development experience on Windows (10,11)
Modern C++23 library collection, better development experience on Windows (10,11)

A lot of the code supports wchar_t based on Abseil modifications, some of which come from Visual C++ STL.

Expand Down
2 changes: 1 addition & 1 deletion vendor/bela/include/bela/__charconv/to_chars_base_10.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ template <class I> constexpr wchar_t *__append1(wchar_t *__buffer, I __value) no
}

template <class I> constexpr wchar_t *__append2(wchar_t *__buffer, I __value) noexcept {
std::memcpy(__buffer, &__digits_base_10[(__value)*2], 2 * sizeof(wchar_t));
std::memcpy(__buffer, &__digits_base_10[(__value) * 2], 2 * sizeof(wchar_t));
return __buffer + 2;
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/bela/include/bela/__phmap/VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
https://github.com/greg7mdp/parallel-hashmap.git
65775fa09fecaa65d0b0022ab6bf091c0e509445
2d062fc53967b978cab766c76829e2fcd8817ccc
Loading

0 comments on commit dacf982

Please sign in to comment.