diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-lang/zig/zig-9999.ebuild | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-lang/zig/zig-9999.ebuild')
-rw-r--r-- | dev-lang/zig/zig-9999.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild index cdac1427ee7e..87dc59b0c0c7 100644 --- a/dev-lang/zig/zig-9999.ebuild +++ b/dev-lang/zig/zig-9999.ebuild @@ -18,7 +18,7 @@ fi LICENSE="MIT" SLOT="0" -IUSE="test +stage2" +IUSE="test +stage2 +threads" RESTRICT="!test? ( test )" BUILD_DIR="${S}/build" @@ -59,6 +59,7 @@ src_configure() { local mycmakeargs=( -DZIG_USE_CCACHE=OFF -DZIG_PREFER_CLANG_CPP_DYLIB=ON + -DZIG_SINGLE_THREADED="$(usex threads OFF ON)" ) cmake_src_configure @@ -69,7 +70,7 @@ src_compile() { if use stage2 ; then cd "${BUILD_DIR}" || die - ./zig build -p stage2 -Dstatic-llvm=false -Denable-llvm=true || die + ./zig build -p stage2 -Dstatic-llvm=false -Denable-llvm=true -Dsingle-threaded="$(usex threads false true)" || die fi } @@ -88,6 +89,9 @@ src_install() { fi } +# see https://github.com/ziglang/zig/issues/3382 +QA_FLAGS_IGNORED="/usr/bin/zig-stage2" + pkg_postinst() { use stage2 && elog "You enabled stage2 USE flag, Zig stage1 was installed as /usr/bin/zig, Zig stage2 was installed as /usr/bin/zig-stage2" } |