1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-09 09:34:49 +09:00
Satori/docs/workflow/requirements/macos-requirements.md
Ivan Diaz Sanchez cd26e63274
Up Minimum CMake Version to 3.20 (#86530)
* Let's see what happens :)

* CMake 3.20 works on my machine???

* Upped the llibraries CMake version to 3.20

* Upped native libs CMake version to 3.20, and updated the requirements docs.

* Add CMake Policy to 3.17.0 for native libs because of wasm.

* Downgraded native libs CMake to 3.17.0 temporarily, while we figure out the funny troublemaker wasm.

* Added a couple notes regarding CMake on Linux and Windows, and upped the corehost and libunwind CMake versions to 3.20

* Reverted external native components CMake versions, and upped tests to 3.20. Only Mono remains now.

* Added mono to the 3.20 gang. Also, changed the condition for wasm.

* Had to condition mono's CMake version as well because of wasm.

* DEBUG-ONLY COMMIT: Added some CMake logging to help me figure out what is set for wasm to think of the appropriate conditional.

* DEBUG-ONLY COMMIT: I think I have the answer for wasm now/

* Restored the DEBUG-ONLY changes and set 3.20 as the universal CMake, as the missing machines have now been updated.

* Updated requirements doc with notes for Debian 11 and lower.
2023-07-03 19:03:12 -07:00

1.4 KiB

Requirements to build dotnet/runtime on macOS

This guide will walk you through the requirements needed to build dotnet/runtime on macOS. We'll start by showing how to set up your environment from scratch.

Environment

Here are the components you will need to install and setup to work with the repo.

Xcode

  • Install Apple Xcode developer tools from the Mac App Store.
  • Configure the Xcode command line tools:
    • Run Xcode, open Preferences, and on the Locations tab, change "Command Line Tools" to point to this installation of Xcode.app. This usually comes already done by default, but it's always good to ensure.
    • Alternately, you can run sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer in a terminal (Adjust the path if you renamed Xcode.app).

Toolchain Setup

Building dotnet/runtime depends on several tools to be installed. You can download them individually or use Homebrew for easier toolchain setup.

Install the following packages:

  • CMake 3.20 or newer
  • icu4c
  • openssl@1.1 or openssl@3
  • pkg-config
  • python3
  • ninja (optional, enables building native code with ninja instead of make)

You can install all the required packages above using Homebrew by running this command in the repository root:

brew bundle --no-lock --file eng/Brewfile