
* llvm: make targets a multivalued variant * Fix the targets variant values 1. Make them lowercase and add a mapping to cmake equivalent 2. auto -> all 2. Restore composability by using a multivalued variant, so that `targets=all` and `targets=x86` is combined to `targets=all,x86` which is then transformed into LLVM_TARGETS_TO_BUILD=all. * use targets=x86 in iwyu * Default to nvptx/amdgpu/host arch targets * default to none * Update var/spack/repos/builtin/packages/zig/package.py
23 lines
692 B
Python
23 lines
692 B
Python
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
class Zig(CMakePackage):
|
|
"""A general-purpose programming language and toolchain for maintaining
|
|
robust, optimal, and reusable software.
|
|
"""
|
|
|
|
homepage = "https://ziglang.org/"
|
|
git = "https://github.com/ziglang/zig.git"
|
|
|
|
version('0.7.1', tag='0.7.1')
|
|
|
|
variant(
|
|
'build_type', values=('Release', 'RelWithDebInfo', 'MinSizeRel'),
|
|
default='Release', description='CMake build type'
|
|
)
|
|
|
|
depends_on('llvm@11.0.0: targets=all')
|
|
|
|
provides('ziglang')
|