8000 Update README.md by Kyle-Ye · Pull Request #6860 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

Update README.md #6860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Table of Contents
* [Installation](#installation)
* [Advanced Usage](#advanced-usage)
* [Compiler and linker options](#compiler-and-linker-options)
* [MacOS X](#macos-x)
* [macOS](#macos)
* [Android](#android)
* [MinGW](#mingw)
* [Language Bindings](#language-bindings)
Expand Down Expand Up @@ -290,7 +290,7 @@ To list all build options and their current value, you can do the
8000 following:

# Create and set up a build directory
$ mkdir build
$ mkdir build && cd build
$ cmake ..
# List all build options and their values
$ cmake -L
Expand All @@ -309,12 +309,25 @@ Tell CMake where to find those specific libraries
- `LINK_WITH_STATIC_LIBRARIES`: Link only with static versions of
system libraries

MacOS X
macOS
-------

If you want to build a universal binary for Mac OS X, CMake sets it
all up for you if you use `-DCMAKE_OSX_ARCHITECTURES="i386;x86_64"`
when configuring.
If you'd like to work with Xcode, you can generate an Xcode project with "-G Xcode".

# Create and set up a build directory
$ mkdir build && cd build
$ cmake -G Xcode ..

> [!TIP]
> Universal binary support:
>
> If you want to build a universal binary for macOS 11.0+, CMake sets it
> all up for you if you use `-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"`
> when configuring.
>
> [Deprecated] If you want to build a universal binary for Mac OS X
> (10.4.4 ~ 10.6), CMake sets it all up for you if you use
> `-DCMAKE_OSX_ARCHITECTURES="i386;x86_64"` when configuring.

Android
-------
Expand Down
Loading
0