switch to clang++ and add bear to shell

This commit is contained in:
jacekpoz 2024-07-16 09:39:46 +02:00
parent 24bb5e14ec
commit 540d9faee4
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
CXX = g++ CXX = clang++
CXXFLAGS = -std=c++20 -O3 -Wall -Wextra -Wpedantic CXXFLAGS = -std=c++20 -O3 -Wall -Wextra -Wpedantic
LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-system LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-system

View file

@ -1,19 +1,21 @@
{ {
mkShell, mkShell,
gcc, clang,
gnumake, gnumake,
clang-tools, clang-tools,
sfml, sfml,
bear,
... ...
}: }:
mkShell { mkShell {
name = "osu++"; name = "osu++";
nativeBuildInputs = [ nativeBuildInputs = [
gcc clang
gnumake gnumake
# for clang-format # for clang-format
clang-tools clang-tools
bear
]; ];
buildInputs = [ buildInputs = [