Skip to content

Commit 822d4d8

Browse files
authored
Brew install libomp 7.0.0 only. (#3721)
* Brew install libomp 7.0.0 only. * Brew install libomp 7.0.0 only. * Brew install libomp 7.0.0 only. * Brew install libomp 7.0.0 only.
1 parent f6faab1 commit 822d4d8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build/ci/phase-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ phases:
3434
${{ insert }}: ${{ parameters.queue }}
3535
steps:
3636
- ${{ if eq(parameters.queue.name, 'Hosted macOS') }}:
37-
- script: brew update && brew install libomp && brew install mono-libgdiplus gettext && brew link gettext --force && brew link libomp --force
37+
- script: brew update && brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f5b1ac99a7fba27c19cee0bc4f036775c889b359/Formula/libomp.rb && brew install mono-libgdiplus gettext && brew link gettext --force && brew link libomp --force
3838
displayName: Install build dependencies
3939
- script: $(_buildScript) -$(_configuration) -buildArch=$(_arch)
4040
displayName: Build

build/vsts-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ phases:
4848
demands:
4949
- agent.os -equals Darwin
5050
steps:
51-
- script: brew update && brew install libomp && brew link libomp --force
51+
- script: brew update && brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f5b1ac99a7fba27c19cee0bc4f036775c889b359/Formula/libomp.rb && brew link libomp --force
5252
displayName: Install build dependencies
5353
# Only build native assets to avoid conflicts.
5454
- script: ./build.sh -buildNative -$(BuildConfig) -skipRIDAgnosticAssets

docs/building/unix-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ macOS 10.12 (Sierra) or higher is needed to build dotnet/machinelearning.
4343

4444
On macOS a few components are needed which are not provided by a default developer setup:
4545
* cmake 3.10.3
46-
* libomp
46+
* libomp 7
4747
* libgdiplus
4848
* gettext
4949
* All the requirements necessary to run .NET Core 2.0 applications. To view macOS prerequisites click [here](https://docs.microsoft.com/en-us/dotnet/core/macos-prerequisites?tabs=netcore2x).
5050

5151
One way of obtaining CMake and other required libraries is via [Homebrew](https://brew.sh):
5252
```sh
53-
$ brew install cmake libomp mono-libgdiplus gettext && brew link gettext --force
53+
$ brew install cmake https://raw.githubusercontent.com/Homebrew/homebrew-core/f5b1ac99a7fba27c19cee0bc4f036775c889b359/Formula/libomp.rb mono-libgdiplus gettext && brew link gettext --force
5454
```

0 commit comments

Comments
 (0)