NASM package: fix build on Windows (#35100)
This commit is contained in:
		| @@ -8,7 +8,7 @@ | |||||||
| from spack.package import * | from spack.package import * | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Nasm(AutotoolsPackage): | class Nasm(AutotoolsPackage, Package): | ||||||
|     """NASM (Netwide Assembler) is an 80x86 assembler designed for |     """NASM (Netwide Assembler) is an 80x86 assembler designed for | ||||||
|     portability and modularity. It includes a disassembler as well.""" |     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") |     conflicts("%intel@:14", when="@2.14:", msg="Intel <= 14 lacks support for C11") | ||||||
| 
 | 
 | ||||||
|  |     build_system("autotools", "generic", default="autotools") | ||||||
|  | 
 | ||||||
|     def patch(self): |     def patch(self): | ||||||
|         # Remove flags not recognized by the NVIDIA compiler |         # Remove flags not recognized by the NVIDIA compiler | ||||||
|         if self.spec.satisfies("%nvhpc@:20.11"): |         if self.spec.satisfies("%nvhpc@:20.11"): | ||||||
| @@ -56,7 +58,7 @@ def patch(self): | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class GenericBuilder(spack.build_systems.generic.GenericBuilder): | 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): |         with working_dir(self.stage.source_path, create=True): | ||||||
|             # build NASM with nmake |             # build NASM with nmake | ||||||
|             touch("asm\\warnings.time") |             touch("asm\\warnings.time") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John W. Parent
					John W. Parent