From 8695d96bd10d56a5927270e0079af7710135f544 Mon Sep 17 00:00:00 2001 From: "John W. Parent" <45471568+johnwparent@users.noreply.github.com> Date: Mon, 20 Mar 2023 17:45:00 -0400 Subject: NASM package: fix build on Windows (#35100) --- var/spack/repos/builtin/packages/nasm/package.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/nasm/package.py b/var/spack/repos/builtin/packages/nasm/package.py index 8045976ad8..9fbd81c27f 100644 --- a/var/spack/repos/builtin/packages/nasm/package.py +++ b/var/spack/repos/builtin/packages/nasm/package.py @@ -8,7 +8,7 @@ import os from spack.package import * -class Nasm(AutotoolsPackage): +class Nasm(AutotoolsPackage, Package): """NASM (Netwide Assembler) is an 80x86 assembler designed for portability and modularity. It includes a disassembler as well.""" @@ -40,6 +40,8 @@ class Nasm(AutotoolsPackage): conflicts("%intel@:14", when="@2.14:", msg="Intel <= 14 lacks support for C11") + build_system("autotools", "generic", default="autotools") + def patch(self): # Remove flags not recognized by the NVIDIA compiler if self.spec.satisfies("%nvhpc@:20.11"): @@ -56,7 +58,7 @@ class Nasm(AutotoolsPackage): class GenericBuilder(spack.build_systems.generic.GenericBuilder): - def install(self, spec, prefix): + def install(self, pkg, spec, prefix): with working_dir(self.stage.source_path, create=True): # build NASM with nmake touch("asm\\warnings.time") -- cgit v1.2.3-70-g09d2