Skip to content

Commit

Permalink
Update Mac build docs regarding thin archives (iree-org#15085)
Browse files Browse the repository at this point in the history
Apple `ar` does not support thin archives, so passing
`-DIREE_ENABLE_THIN_ARCHIVES=ON` on Mac results in CMake spew (raw
output of `ar` + explicit Warning). Fix that default behavior and
document how to properly switch to thin archives on Mac.
  • Loading branch information
bjacob authored Oct 2, 2023
1 parent ad1a82e commit caaf7dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/website/docs/building-from-source/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,15 @@ settings can improve compile and link times substantially.
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DIREE_ENABLE_ASSERTIONS=ON \
-DIREE_ENABLE_SPLIT_DWARF=ON \
-DIREE_ENABLE_THIN_ARCHIVES=ON \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DIREE_ENABLE_LLD=ON
```

It is also possible to add `-DIREE_ENABLE_THIN_ARCHIVES=ON` if the
`CMAKE_AR` variable is defined and points to the path of either the GNU
binutils or LLVM `ar` program, overriding the default Apple `ar`.

=== "Windows"

``` shell
Expand Down

0 comments on commit caaf7dd

Please sign in to comment.