Skip to content

Commit f074d9b

Browse files
committed
Add clang 22
1 parent 13d47aa commit f074d9b

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

pixi.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ clang = "21.*"
7070
[environments.clang-21]
7171
features = ["cmd", "build-tools", "lib", "clang-base", "clang-21"]
7272

73+
# clang-22 compiler environment
74+
[feature.clang-22.dependencies]
75+
clang = "22.*"
76+
[environments.clang-22]
77+
features = ["cmd", "build-tools", "lib", "clang-base", "clang-22"]
78+
7379
# A set of gcc dependencies that include a set of unconstrained needed packages.
7480
# We combine it with another feature to pin an exact version.
7581
[feature.gcc-base.target.linux.dependencies]
@@ -98,7 +104,7 @@ cmake -B build/{{ pixi.environment.name }}/{{ preset }} -G Ninja \
98104
-D CMAKE_COLOR_DIAGNOSTICS=ON \
99105
-D CMAKE_C_COMPILER_LAUNCHER="sccache" \
100106
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
101-
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON \
107+
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON
102108
"""
103109
inputs = ["**/CMakeLists.txt", "**/*.cmake.in", "cmake/"]
104110
outputs = ["build/{{ pixi.environment.name }}/{{ preset }}/CMakeCache.txt"]
@@ -128,8 +134,7 @@ testing SSE4.2 on a AVX2 machine).\
128134
"""
129135

130136
[feature.cmd.tasks.show-asm]
131-
args = [{ arg = "preset", default = "dev-native" }]
132-
cmd = "$CXX -S -xc++ -o- - -Iinclude/ -DNDEBUG"
137+
cmd = "$CXX -S -xc++ -o- - -Iinclude/ -DNDEBUG -O3"
133138
description = """
134139
Show the assembly produced for the current compiler and preset for the \
135140
code passed through the standard input.
@@ -177,7 +182,7 @@ description = "Run clang-format on the codebase."
177182
cmd = "ln -sf build/dev/debug-native/compile_commands.json"
178183
depends-on = [
179184
{ task = "configure", args = [
180-
"debug-native",
185+
"dev-native",
181186
], environment = "dev" },
182187
]
183188
outputs = ["compile_commands.json"]

0 commit comments

Comments
 (0)