File tree 1 file changed +13
-3
lines changed 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,24 @@ To run the output binary, run:
37
37
38
38
Bazel builds are also supported.
39
39
[ Install Bazel] ( https://www.bazel.io/versions/master/docs/install.html ) if it is
40
- not installed already. Then, run the following command to build:
40
+ not installed already. Then, run the following command to build with GCC :
41
41
42
42
```
43
43
bazel build -c opt //cmd:jsonnet
44
44
```
45
45
46
- This builds the ` jsonnet ` target defined in [ cmd/BUILD] ( ./cmd/BUILD ) To run the
47
- output binary, run:
46
+ To build with Clang, use one of these two options:
47
+
48
+ ```
49
+ env CC=clang CXX=clang++ bazel build -c opt //cmd:jsonnet
50
+
51
+ # OR
52
+
53
+ bazel build -c opt --action_env=CC=clang --action_env=CXX=clang++ //cmd:jsonnet
54
+ ```
55
+
56
+ This builds the ` jsonnet ` target defined in [ ` cmd/BUILD ` ] ( ./cmd/BUILD ) . To
57
+ launch the output binary, run:
48
58
49
59
```
50
60
bazel-bin/cmd/jsonnet
You can’t perform that action at this time.
0 commit comments