8000 Update macOS section of README.md · libgit2/libgit2@c80c4d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit c80c4d6

Browse files
committed
Update macOS section of README.md
1 parent 30f92e8 commit c80c4d6

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Table of Contents
4747
* [Installation](#installation)
4848
* [Advanced Usage](#advanced-usage)
4949
* [Compiler and linker options](#compiler-and-linker-options)
50-
* [MacOS X](#macos-x)
50+
* [macOS](#macos)
5151
* [Android](#android)
5252
* [MinGW](#mingw)
5353
* [Language Bindings](#language-bindings)
@@ -309,12 +309,25 @@ Tell CMake where to find those specific libraries
309309
- `LINK_WITH_STATIC_LIBRARIES`: Link only with static versions of
310310
system libraries
311311

312-
MacOS X
312+
macOS
313313
-------
314314

315-
If you want to build a universal binary for Mac OS X, CMake sets it
316-
all up for you if you use `-DCMAKE_OSX_ARCHITECTURES="i386;x86_64"`
317-
when configuring.
315+
If you'd like to work with Xcode, you can generate an Xcode project with "-G Xcode".
316+
317+
# Create and set up a build directory
318+
$ mkdir build && cd build
319+
$ cmake -G Xcode ..
320+
321+
> [!TIP]
322+
> Universal Binary:
323+
>
324+
> If you want to build a universal binary for macOS 11.0+, CMake sets it
325+
> all up for you if you use `-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"`
326+
> when configuring.
327+
>
328+
> [Deprecated] If you want to build a universal binary for Mac OS X
329+
> (10.4.4 ~ 10.6), CMake sets it all up for you if you use
330+
> `-DCMAKE_OSX_ARCHITECTURES="i386;x86_64"` when configuring.
318331
319332
Android
320333
-------

0 commit comments

Comments
 (0)
0