Skip to content

Commit

Permalink
zig: update to version 0.13.0
Browse files Browse the repository at this point in the history
    - Update to version 0.13.0
    - Force static linking of llvm/clang; this was the default previously
    - Since llvm/clang are linking statically these can be build-only dependencies.

    Closes: https://trac.macports.org/ticket/70584
    Supersedes: #24430
  • Loading branch information
sugarthc committed Aug 29, 2024
1 parent f4c2a30 commit a23d2e6
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lang/zig/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PortGroup legacysupport 1.1

legacysupport.use_static yes

github.setup ziglang zig 0.12.1
github.setup ziglang zig 0.13.0
github.tarball_from archive
revision 0

Expand All @@ -23,19 +23,19 @@ long_description Zig is a general-purpose programming language designed for \

homepage https://ziglang.org/

set llvm_version 17
set llvm_version 18

depends_lib-append port:clang-${llvm_version} \
port:ncurses \
depends_lib-append port:ncurses \
port:libxml2 \
port:zlib \
port:zstd
depends_build-append \
port:llvm-${llvm_version}
port:llvm-${llvm_version} \
port:clang-${llvm_version}

checksums rmd160 bc0f9330a016ea1ba1d271820d746d6c3580f550 \
sha256 22c7b41238b808db5f62be1d08099f841bb812ec2fea9d7de9fcbb6b8e347b14 \
size 26451610
checksums rmd160 6d81a7d1f3e6f67ebfffc453b5a45b39f88ae641 \
sha256 d3912858003e340f315224bf177d0f441d86b81f62854f5c141b6d51ab6b5516 \
size 26656532

set llvm_config LLVM_CONFIG=llvm-config-mp-${llvm_version}

Expand All @@ -47,6 +47,9 @@ cmake_share_module_dir \
cmake.install_rpath-append \
${prefix}/libexec/llvm-${llvm_version}/lib

# We need to link LLVM statically until a way is found to force zig to link the system libc++ dynamically.
configure.args-append -DZIG_STATIC_LLVM=ON

platform darwin {
# due to the new linker (which was introduced in Xcode 15: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes),
# this port requires '-ld_classic' to build successfully with the toolchains from Xcode 15 or Command Line Tools 15.
Expand Down

0 comments on commit a23d2e6

Please sign in to comment.