diff options
author | John W. Parent <45471568+johnwparent@users.noreply.github.com> | 2023-03-20 17:45:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 14:45:00 -0700 |
commit | 8695d96bd10d56a5927270e0079af7710135f544 (patch) | |
tree | c229318b4c65ca44047083dc36a61eca41e62a84 /var | |
parent | fa0749bfb8f89bfe4c8124c22a211a39040f2d24 (diff) | |
download | spack-8695d96bd10d56a5927270e0079af7710135f544.tar.gz spack-8695d96bd10d56a5927270e0079af7710135f544.tar.bz2 spack-8695d96bd10d56a5927270e0079af7710135f544.tar.xz spack-8695d96bd10d56a5927270e0079af7710135f544.zip |
NASM package: fix build on Windows (#35100)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/nasm/package.py | 6 |
1 files 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") |