Skip to content

Commit 2b3085c

Browse files
committed
Cleanup
1 parent f74b042 commit 2b3085c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if(CMAKE_GENERATOR STREQUAL "Ninja" AND FMT_USE_MODULES)
9191
${LLVM_LIBC_SOURCE}/std.cppm
9292
${LLVM_LIBC_SOURCE}/std.compat.cppm
9393
)
94-
target_compile_features(${NAME} PUBLIC cxx_std_26)
94+
target_compile_features(${NAME} PUBLIC cxx_std_23)
9595
target_compile_definitions(
9696
${NAME}
9797
PUBLIC _LIBCPP_HAS_NO_LOCALIZATION
@@ -110,13 +110,13 @@ if(CMAKE_GENERATOR STREQUAL "Ninja" AND FMT_USE_MODULES)
110110
CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
111111
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15.0
112112
)
113-
add_compile_options(-stdlib=libc++)
114-
add_link_options(-stdlib=libc++)
113+
add_compile_options(-stdlib=libstdc++)
114+
add_link_options(-stdlib=libstdc++)
115115
endif()
116116

117117
# Tell CMake that we explicitly want `import std`.
118118
# This will initialize the property on all targets declared after this to 1
119-
if(26 IN_LIST CMAKE_CXX_COMPILER_IMPORT_STD)
119+
if(23 IN_LIST CMAKE_CXX_COMPILER_IMPORT_STD)
120120
# XXX NO! set(CMAKE_CXX_MODULE_STD ON)
121121
endif()
122122

@@ -195,7 +195,7 @@ target_sources(
195195
)
196196

197197
target_compile_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY)
198-
target_compile_features(fmt-header-only INTERFACE cxx_std_26)
198+
target_compile_features(fmt-header-only INTERFACE cxx_std_23)
199199

200200
# Unicode support requires compiling with /utf-8.
201201
target_compile_options(
@@ -221,7 +221,7 @@ if(FMT_SEPARATE_COMPILATION)
221221
fmt
222222
PUBLIC $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>
223223
)
224-
target_compile_features(fmt INTERFACE cxx_std_26)
224+
target_compile_features(fmt INTERFACE cxx_std_23)
225225

226226
if(FMT_USE_MODULES)
227227
message(STATUS "FMT_USE_MODULES=${FMT_USE_MODULES}")

CMakePresets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
},
6969
"environment": {
7070
"CXX": "clang++",
71-
"LLVM_ROOT": "/usr/lib/llvm-19",
72-
"PATH": "$env{LLVM_ROOT}/bin:$penv{PATH}"
71+
"LLVM_DIR": "/usr/lib/llvm-20",
72+
"PATH": "$env{LLVM_DIR}/bin:$penv{PATH}"
7373
},
7474
"condition": {
7575
"type": "equals",

0 commit comments

Comments
 (0)