Skip to content

Commit f6ebb35

Browse files
authored
Add documentation about CMAKE_OSX_SYSROOT (#168024)
Add documentation about CMAKE_OSX_SYSROOT so that folks bringing up on OSX can have a clean test run.
1 parent 186b8ba commit f6ebb35

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

llvm/docs/CMake.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,3 +1200,14 @@ Windows
12001200
When compiling with clang-cl, CMake may use ``llvm-mt`` as the Manifest Tool
12011201
when available. ```llvm-mt``` is only present when libxml2 is found at build-time.
12021202
To ensure using Microsoft's Manifest Tool set `CMAKE_MT=mt`.
1203+
1204+
Apple/OSX
1205+
---------
1206+
1207+
**CMAKE_OSX_SYSROOT**:STRING
1208+
When compiling for OSX, in order for the test suite to find libSystem to link
1209+
dylib tests you'll need to run CMake with ```xcrun --show-sdk-path``` as the
1210+
string to pass in so that the testsuite can find your os libraries.
1211+
1212+
This will show up as ```ld: library not found for -lSystem``` when running
1213+
tests.

0 commit comments

Comments
 (0)