Skip to content

Commit

Permalink
Use fork of fmt to workaround compiler bugs until new fmt release
Browse files Browse the repository at this point in the history
  • Loading branch information
Oipo committed Oct 28, 2024
1 parent 1d340a0 commit 0407a97
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:
jobs:
build:
runs-on: self-hosted
timeout-minutes: 120

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
branch = devel
[submodule "external/fmt"]
path = external/fmt
url = https://github.com/fmtlib/fmt.git
url = https://github.com/Oipo/fmt.git
[submodule "external/mimalloc"]
path = external/mimalloc
url = https://github.com/volt-software/mimalloc-static.git
Expand Down
2 changes: 1 addition & 1 deletion external/fmt
Submodule fmt updated 1 files
+9 −9 include/fmt/base.h
13 changes: 9 additions & 4 deletions quickbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ BUILDTYPE="Debug"
RUN_EXAMPLES=0
IODEBUG=0
DEBUG=0
CCOMP=clang-20
CXXCOMP=clang++-20
CCOMP=clang-19
CXXCOMP=clang++-19
BOOST=0
SPDLOG=0

while [[ $# -gt 0 ]]; do
case $1 in
Expand Down Expand Up @@ -67,10 +68,14 @@ while [[ $# -gt 0 ]]; do
RUN_EXAMPLES=1
shift # past value
;;
--with-boost)
--boost)
BOOST=1
shift # past value
;;
--spdlog)
SPDLOG=1
shift # past value
;;
-*|--*)
echo "Unknown option $1"
exit 1
Expand All @@ -87,7 +92,7 @@ set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
rm -rf ./*
rm -rf ../bin/*

CC=${CCOMP} CXX=${CXXCOMP} cmake -DCMAKE_BUILD_TYPE=${BUILDTYPE} -DICHOR_REMOVE_SOURCE_NAMES=0 -DICHOR_ENABLE_INTERNAL_DEBUGGING=${DEBUG} -DICHOR_ENABLE_INTERNAL_IO_DEBUGGING=${IODEBUG} -DICHOR_ARCH_OPTIMIZATION=X86_64_AVX2 -DICHOR_USE_BACKWARD=0 -DICHOR_USE_BOOST_BEAST=${BOOST} -DICHOR_USE_HIREDIS=1 -DICHOR_USE_LIBCPP=0 -DICHOR_USE_SANITIZERS=${ASAN} -DICHOR_USE_THREAD_SANITIZER=${TSAN} -DICHOR_USE_MOLD=1 -DICHOR_USE_SDEVENT=1 -DICHOR_USE_SPDLOG=0 -GNinja .. || exit 1
CC=${CCOMP} CXX=${CXXCOMP} cmake -DCMAKE_BUILD_TYPE=${BUILDTYPE} -DICHOR_REMOVE_SOURCE_NAMES=0 -DICHOR_ENABLE_INTERNAL_DEBUGGING=${DEBUG} -DICHOR_ENABLE_INTERNAL_IO_DEBUGGING=${IODEBUG} -DICHOR_ARCH_OPTIMIZATION=X86_64_AVX2 -DICHOR_USE_BACKWARD=0 -DICHOR_USE_BOOST_BEAST=${BOOST} -DICHOR_USE_HIREDIS=1 -DICHOR_USE_LIBCPP=0 -DICHOR_USE_SANITIZERS=${ASAN} -DICHOR_USE_THREAD_SANITIZER=${TSAN} -DICHOR_USE_MOLD=1 -DICHOR_USE_SDEVENT=1 -DICHOR_USE_SPDLOG=${SPDLOG} -GNinja .. || exit 1

ninja || exit 1
ninja test || exit 1
Expand Down

0 comments on commit 0407a97

Please sign in to comment.