File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1616# User-servicable parts:
1717# ###############################################################################
1818
19- # C/C++ compiler -- clang also works
19+ # C/C++ compiler; to use Clang, build with `make CC=clang CXX=clang++`
2020CXX ?= g++
2121CC ?= gcc
2222
Original file line number Diff line number Diff line change @@ -9,17 +9,24 @@ Visit our [discussion forum](https://groups.google.com/forum/#!forum/jsonnet).
99
1010## Building Jsonnet
1111
12- The GCC C++ (g++) compiler is required to build Jsonnet. Clang is also
13- supported.
12+ You can use either GCC or Clang to build Jsonnet. Note that on recent versions
13+ of macOS, ` /usr/bin/gcc ` and ` /usr/bin/g++ ` are actually Clang, so there is no
14+ difference.
1415
1516### Makefile
1617
17- To build jsonnet with g++ , run:
18+ To build Jsonnet with GCC , run:
1819
1920```
2021make
2122```
2223
24+ To build Jsonnet with Clang, run:
25+
26+ ```
27+ make CC=clang CXX=clang++
28+ ```
29+
2330To run the output binary, run:
2431
2532```
You can’t perform that action at this time.
0 commit comments