pixi: use clang on Linux.

clang uses considerably less memory on Linux allowing more concurrent instances than with g++.
Using clang reduced build times on a machine from 63m to 32m.
This commit is contained in:
Jacob Oursland
2025-04-15 01:10:27 -07:00
committed by Benjamin Nauck
parent ac02a9a39d
commit 7b759aae1a
3 changed files with 137 additions and 28 deletions

View File

@@ -119,6 +119,14 @@
},
"cmakeExecutable": "${sourceDir}/conda/cmake.sh",
"cacheVariables": {
"CMAKE_C_COMPILER": {
"type": "STRING",
"value": "clang"
},
"CMAKE_CXX_COMPILER": {
"type": "STRING",
"value": "clang++"
},
"CMAKE_EXE_LINKER_FLAGS": {
"type": "STRING",
"value": "-fuse-ld=mold"