Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
3a5239e6
Unverified
Commit
3a5239e6
authored
Nov 08, 2024
by
Daniel Hiltgen
Committed by
GitHub
Nov 08, 2024
Browse files
Set macos min version for all architectures (#7579)
parent
3d25e7bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
scripts/build_darwin.sh
scripts/build_darwin.sh
+8
-7
No files found.
scripts/build_darwin.sh
View file @
3a5239e6
...
@@ -6,17 +6,18 @@ set -e
...
@@ -6,17 +6,18 @@ set -e
mkdir
-p
dist
mkdir
-p
dist
# These require Xcode v13 or older to target MacOS v11
# If installed to an alternate location use the following to enable
# export SDKROOT=/Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
# export DEVELOPER_DIR=/Applications/Xcode_12.5.1.app/Contents/Developer
export
CGO_CFLAGS
=
-mmacosx-version-min
=
11.3
export
CGO_CXXFLAGS
=
-mmacosx-version-min
=
11.3
export
CGO_LDFLAGS
=
-mmacosx-version-min
=
11.3
for
TARGETARCH
in
arm64 amd64
;
do
for
TARGETARCH
in
arm64 amd64
;
do
echo
"Building Go runner darwin
$TARGETARCH
"
echo
"Building Go runner darwin
$TARGETARCH
"
rm
-rf
llama/build
rm
-rf
llama/build
GOOS
=
darwin
ARCH
=
$TARGETARCH
GOARCH
=
$TARGETARCH
make
-C
llama
-j
8
GOOS
=
darwin
ARCH
=
$TARGETARCH
GOARCH
=
$TARGETARCH
make
-C
llama
-j
8
# These require Xcode v13 or older to target MacOS v11
# If installed to an alternate location use the following to enable
# export SDKROOT=/Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
# export DEVELOPER_DIR=/Applications/Xcode_12.5.1.app/Contents/Developer
export
CGO_CFLAGS
=
-mmacosx-version-min
=
11.3
export
CGO_CXXFLAGS
=
-mmacosx-version-min
=
11.3
export
CGO_LDFLAGS
=
-mmacosx-version-min
=
11.3
CGO_ENABLED
=
1
GOOS
=
darwin
GOARCH
=
$TARGETARCH
go build
-trimpath
-o
dist/ollama-darwin-
$TARGETARCH
CGO_ENABLED
=
1
GOOS
=
darwin
GOARCH
=
$TARGETARCH
go build
-trimpath
-o
dist/ollama-darwin-
$TARGETARCH
CGO_ENABLED
=
1
GOOS
=
darwin
GOARCH
=
$TARGETARCH
go build
-trimpath
-cover
-o
dist/ollama-darwin-
$TARGETARCH
-cov
CGO_ENABLED
=
1
GOOS
=
darwin
GOARCH
=
$TARGETARCH
go build
-trimpath
-cover
-o
dist/ollama-darwin-
$TARGETARCH
-cov
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment