Skip to content

Commit 90afd47

Browse files
authored
Merge pull request #5339 from karkhaz/kk-document-explicit-compiler-path
Document specifying compiler path when using CMake
2 parents 1c2532a + 9f67fd5 commit 90afd47

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

COMPILING.md

Lines changed: 8 additions & 0 deletions
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)