Skip to content

Commit

Permalink
zig: update to 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
i0ntempest committed Apr 22, 2024
1 parent 8dcda3c commit c2a9a47
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 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.11.0
github.setup ziglang zig 0.12.0
github.tarball_from archive
revision 0

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

homepage https://ziglang.org/

set llvm_version 16
set llvm_version 17

depends_lib-append port:clang-${llvm_version} \
port:ncurses \
Expand All @@ -33,23 +33,26 @@ depends_lib-append port:clang-${llvm_version} \
depends_build-append \
port:llvm-${llvm_version}

checksums rmd160 484834dc8cb38332eeaab2345f605c711198654f \
sha256 71de3e958293dffaa17f7ad1438c775389f5406991c96b533bb1501178092b02 \
size 24606916
checksums rmd160 5c0a141f23c805eab9e5958cbbca25d04c26637a \
sha256 57d7e0ad565ef734d9f3fe8cff7a815f2ab012ec3d8e155a316dfc79f789c432 \
size 26431150

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

compiler.whitelist macports-clang-${llvm_version}
cmake.module_path ${prefix}/libexec/llvm-${llvm_version} \
${prefix}
cmake_share_module_dir ${prefix}/libexec/llvm-${llvm_version}
cmake_share_module_dir \
${prefix}/libexec/llvm-${llvm_version}
cmake.install_rpath-append \
${prefix}/libexec/llvm-${llvm_version}/lib

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.
#
# TODO: This is a temporary solution, the classic linker will be removed in a future release by Apple.
if { ( [vercmp ${xcodeversion} 15 ] >= 0 ) || ( [vercmp ${xcodecltversion} 15 ] >= 0 ) } {
if { ${os.major} == 23 && ( [vercmp ${xcodeversion} 15 ] >= 0 ) || ( [vercmp ${xcodecltversion} 15 ] >= 0 ) } {
configure.ldflags-append \
-Wl,-ld_classic
}
Expand Down

0 comments on commit c2a9a47

Please sign in to comment.