aoc24: day01 update to zip
Include Linux command stuff to use clang compiler.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user