Skip to content
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

Darwin autumn cleaning: x86_64-macos.13 and aarch64-macos.13 support #13299

Merged
merged 10 commits into from
Oct 26, 2022
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ set(ZIG_STATIC off CACHE BOOL "Attempt to build a static zig executable (not com
set(ZIG_SHARED_LLVM off CACHE BOOL "Prefer linking against shared LLVM libraries")
set(ZIG_STATIC_LLVM off CACHE BOOL "Prefer linking against static LLVM libraries")
set(ZIG_STATIC_ZLIB off CACHE BOOL "Prefer linking against static zlib")
set(ZIG_STATIC_ZSTD off CACHE BOOL "Prefer linking against static zstd")
set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache if available")

if(CCACHE_PROGRAM AND ZIG_USE_CCACHE)
Expand All @@ -97,6 +98,7 @@ endif()
if(ZIG_STATIC)
set(ZIG_STATIC_LLVM ON)
set(ZIG_STATIC_ZLIB ON)
set(ZIG_STATIC_ZSTD ON)
endif()

if (ZIG_SHARED_LLVM AND ZIG_STATIC_LLVM)
Expand Down Expand Up @@ -137,6 +139,12 @@ if(ZIG_STATIC_ZLIB)
list(APPEND LLVM_LIBRARIES "${ZLIB}")
endif()

if(ZIG_STATIC_ZSTD)
list(REMOVE_ITEM LLVM_LIBRARIES "-lzstd")
find_library(ZSTD NAMES libzstd.a libzstdstatic.a zstd NAMES_PER_DIR)
list(APPEND LLVM_LIBRARIES "${ZSTD}")
endif()

if(APPLE AND ZIG_STATIC)
list(REMOVE_ITEM LLVM_LIBRARIES "-lcurses")
find_library(CURSES NAMES libcurses.a libncurses.a NAMES_PER_DIR
Expand Down
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ fn addStaticLlvmOptionsToExe(exe: *std.build.LibExeObjStep) !void {
}

exe.linkSystemLibrary("z");
exe.linkSystemLibrary("zstd");

// This means we rely on clang-or-zig-built LLVM, Clang, LLD libraries.
exe.linkSystemLibrary("c++");
Expand Down
2 changes: 1 addition & 1 deletion ci/azure/macos_script
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ZIGDIR="$(pwd)"
ARCH="x86_64"
TARGET="$ARCH-macos-none"
MCPU="baseline"
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.10.0-dev.4111+5206832a8"
CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.10.0-dev.4560+828735ac0"
PREFIX="$HOME/$CACHE_BASENAME"
JOBS="-j2"

Expand Down
2 changes: 1 addition & 1 deletion ci/azure/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
vmImage: 'windows-2019'
variables:
TARGET: 'x86_64-windows-gnu'
ZIG_LLVM_CLANG_LLD_NAME: 'zig+llvm+lld+clang-${{ variables.TARGET }}-0.10.0-dev.4459+4f9345d20'
ZIG_LLVM_CLANG_LLD_NAME: 'zig+llvm+lld+clang-${{ variables.TARGET }}-0.10.0-dev.4560+828735ac0'
ZIG_LLVM_CLANG_LLD_URL: 'https://ziglang.org/deps/${{ variables.ZIG_LLVM_CLANG_LLD_NAME }}.zip'
steps:
- pwsh: |
Expand Down
18 changes: 9 additions & 9 deletions ci/drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,56 @@ platform:

steps:
- name: build
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
commands:
- ./ci/drone/linux_script_build

- name: behavior
depends_on:
- build
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
commands:
- ./ci/drone/test_linux_behavior

- name: std_Debug
depends_on:
- build
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
commands:
- ./ci/drone/test_linux_std_Debug

- name: std_ReleaseSafe
depends_on:
- build
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
commands:
- ./ci/drone/test_linux_std_ReleaseSafe

- name: std_ReleaseFast
depends_on:
- build
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
commands:
- ./ci/drone/test_linux_std_ReleaseFast

- name: std_ReleaseSmall
depends_on:
- build
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
commands:
- ./ci/drone/test_linux_std_ReleaseSmall

- name: misc
depends_on:
- build
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
commands:
- ./ci/drone/test_linux_misc

- name: cases
depends_on:
- build
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
commands:
- ./ci/drone/test_linux_cases

Expand All @@ -72,7 +72,7 @@ steps:
- std_ReleaseSmall
- misc
- cases
image: ziglang/static-base:llvm15-aarch64-2
image: ziglang/static-base:llvm15-aarch64-3
environment:
SRHT_OAUTH_TOKEN:
from_secret: SRHT_OAUTH_TOKEN
Expand Down
4 changes: 0 additions & 4 deletions ci/drone/linux_script_finalize
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ if [ -n "$DRONE_PULL_REQUEST" ]; then
exit 0
fi

apk update
apk add py3-pip perl-utils jq curl
pip3 install s3cmd

cd build

mv ../LICENSE "$INSTALL_PREFIX/"
Expand Down
14 changes: 7 additions & 7 deletions ci/zinc/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ workspace:

steps:
- name: configure_git
image: ci/debian-amd64:11.1-11
image: ci/debian-amd64:11.1-12
commands:
- ./ci/zinc/configure_git

- name: test_stage3_debug
depends_on:
- configure_git
image: ci/debian-amd64:11.1-11
image: ci/debian-amd64:11.1-12
commands:
- ./ci/zinc/linux_test_stage3_debug

- name: test_stage3_release
depends_on:
- configure_git
image: ci/debian-amd64:11.1-11
image: ci/debian-amd64:11.1-12
commands:
- ./ci/zinc/linux_test_stage3_release

- name: build_aarch64_macos
depends_on:
- test_stage3_release
image: ci/debian-amd64:11.1-11
image: ci/debian-amd64:11.1-12
commands:
- ./ci/zinc/build_aarch64_macos

Expand All @@ -44,7 +44,7 @@ steps:
- master
event:
- push
image: ci/debian-amd64:11.1-11
image: ci/debian-amd64:11.1-12
environment:
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
Expand All @@ -62,7 +62,7 @@ steps:
- master
event:
- push
image: ci/debian-amd64:11.1-11
image: ci/debian-amd64:11.1-12
environment:
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
Expand All @@ -80,7 +80,7 @@ steps:
- master
event:
- push
image: ci/debian-amd64:11.1-11
image: ci/debian-amd64:11.1-12
environment:
SRHT_OAUTH_TOKEN:
from_secret: SRHT_OAUTH_TOKEN
Expand Down
Loading