ascent: fix oneapi build (#32239)

This commit is contained in:
Robert Cohn
2022-08-18 10:15:39 -07:00
committed by GitHub
parent cfa4bffe26
commit 1cdc50e3f6
2 changed files with 3 additions and 1 deletions

View File

@@ -225,6 +225,8 @@ def cmake_args(self):
host_config = self._get_host_config_path(self.spec)
options = []
options.extend(["-C", host_config, "../spack-src/src/"])
if self.spec.satisfies("%oneapi"):
options.extend(["-D", "CMAKE_Fortran_FLAGS=-nofor-main"])
return options
@run_after("install")