You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Please do not add dependencies without discussing them first.
23
23
24
24
## Setting up Visual Studio Code
25
25
26
-
Preferred tool chain is Clang/LLVM. Clangd extension is recommended.
26
+
Preferred tool chain is Clang/LLVM. Clangd extension is recommended. I would strongly recommend installing the absolute latest version of Clangd from the LLVM website. The version in the Ubuntu repositories is very old and does not support many features.
27
27
28
28
1. Make sure Microsoft C++ tools are not installed.
29
29
1. Install the extensions in `.vscode/extensions.json` (may need to re)
@@ -32,6 +32,16 @@ Preferred tool chain is Clang/LLVM. Clangd extension is recommended.
32
32
33
33
## Recipes
34
34
35
+
### Bazel
36
+
37
+
-`bazel build //...` - build everything
38
+
-`bazel test //...` - run all tests. Use `--test_output=all` to see output from successful runs.
39
+
-`bazel run //path/to:target` - run a binary target
40
+
-`bazel run //path/to:target -- --flag=value output_file` - pass flags to the binary
41
+
-`bazel test //path/to:target --test_output=all` - run a single test with all output
42
+
-`--config=clang` after the verb (build/test/run) builds with Clang on Linux. `--config=asan` and `--config=ubsan` enable AddressSanitizer and UBSan, respectively. E.g. `bazel test --config=asan --config=clang //...` will run all tests with AddressSanitizer and Clang.
43
+
-`--cxxopt` passes flags to the compiler. E.g. `--cxxopt=-march=native` will build for your CPU, helpful with SIMD. `--linkopt` passes flags to the linker.
0 commit comments