aoc24: day01 update to zip

Include Linux command stuff to use clang compiler.
This commit is contained in:
2024-12-02 14:41:42 +01:00
parent 04e64612b9
commit 94d3ffe921
2 changed files with 11 additions and 4 deletions

View File

@@ -33,6 +33,12 @@ Symlink `compile_commands.json` to root directory for `ccls`/`clangd`.
ln -sfn ./build/compile_commands.json .
```
**Linux (use clang)**
```sh
CC=clang CXX=clang++ cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-stdlib=libc++ -I$HOME/.local/include/c++/v1" -DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++ -fuse-ld=lld -L$HOME/.local/lib" -DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++ -fuse-ld=lld -L$HOME/.local/lib"
```
**Windows (requires admin)**
```sh