diff options
Diffstat (limited to 'dev-lang/zig/zig-0.9.1.ebuild')
-rw-r--r-- | dev-lang/zig/zig-0.9.1.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-lang/zig/zig-0.9.1.ebuild b/dev-lang/zig/zig-0.9.1.ebuild index a0e3522a22a0..18dd79a4bbad 100644 --- a/dev-lang/zig/zig-0.9.1.ebuild +++ b/dev-lang/zig/zig-0.9.1.ebuild @@ -18,9 +18,11 @@ fi LICENSE="MIT" SLOT="0" -IUSE="test" +IUSE="test +threads" RESTRICT="!test? ( test )" +PATCHES=("${FILESDIR}/${P}-fix-single-threaded.patch") + BUILD_DIR="${S}/build" # According to zig's author, zig builds that do not support all targets are not @@ -56,6 +58,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 |