Skip to content

Commit 192ccdb

Browse files
karkhazNlightNFotis
authored andcommitted
Document specifying compiler path when using CMake
This commit adds a note to COMPILING.md, explaining that the full path to the compiler needs to be given to CMake in order to build on macOS. This is a workaround for the issue in diffblue#4956
1 parent 21a8b4b commit 192ccdb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

COMPILING.md

+8
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,14 @@ require manual modification of build files.
255255
to generate IDE projects by supplying the `-G` flag. Run `cmake -G` for a
256256
comprehensive list of supported back-ends.
257257
258+
On macOS >10.14, the build will fail unless you explicitly specify
259+
the full path to the compiler. This issue is being tracked
260+
[here](https://github.com/diffblue/cbmc/issues/4956). The invocation thus
261+
looks like this:
262+
```
263+
cmake -S. -Bbuild -DCMAKE_C_COMPILER=/usr/bin/clang
264+
```
265+
258266
Generally it is not necessary to manually specify individual compiler or
259267
linker flags, as CMake defines a number of "build modes" including Debug and
260268
Release modes. To build in a particular mode, add the flag

0 commit comments

Comments
 (0)