-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (27 loc) · 862 Bytes
/
Makefile
File metadata and controls
31 lines (27 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
build:
find . -regex '.*\.\(cc\|hpp\)' -exec clang-format --verbose -i {} +
bazel mod tidy
bazel test //...
bazel run //:buildifier
bazel run //:gazelle
bazel run //src/apps:release.app -- 3 4
bazel run //src/apps:math -- 1
bazel run //src/apps:genheader
oclint:
bazel clean
bazel build //generated:header-generated-genrule
bazel run @hedron_compile_commands//:refresh_all
bazel build --config=oclint //src/...
find bazel-bin/src/**/oclint-analysis/** -name 'analyzed*.txt' -exec cat {} +
find bazel-bin/src/**/oclint-analysis/** -name 'metadata.json' -exec cat {} +
patched:
bazel build //src/apps:math --define=sin=true
# calculate sin
bazel-bin/src/apps/math 1
bazel build //src/apps:math
# calculate cos
bazel-bin/src/apps/math 1
bazel clean
bazel build //src/apps:math --define=sin=true
# calculate sin
bazel-bin/src/apps/math 1