Skip to content
Snippets Groups Projects
Unverified Commit 40d40ccc authored by Piotr Sacharuk's avatar Piotr Sacharuk Committed by GitHub
Browse files

Apply workarounds for oneAPI compiler for ascent problem with build (#48918)

* Apply workarounds for oneAPI compiler for ascent problem with build

* Use the way with use patch through the PR address

* stylecheck - missing comma
parent afe7d6c3
No related branches found
No related tags found
No related merge requests found
...@@ -148,6 +148,14 @@ class Ascent(CMakePackage, CudaPackage): ...@@ -148,6 +148,14 @@ class Ascent(CMakePackage, CudaPackage):
# https://github.com/Alpine-DAV/ascent/pull/1123 # https://github.com/Alpine-DAV/ascent/pull/1123
patch("ascent-find-raja-pr1123.patch", when="@0.9.0") patch("ascent-find-raja-pr1123.patch", when="@0.9.0")
# patch for fix typo in coord_type
# https://github.com/Alpine-DAV/ascent/pull/1408
patch(
"https://github.com/Alpine-DAV/ascent/pull/1408.patch?full_index=1",
when="@0.9.3 %oneapi@2025:",
sha256="7de7f51e57f3d743c39ad80d8783a4eb482be1def51eb2d3f9259246c661f164",
)
########################################################################## ##########################################################################
# package dependencies # package dependencies
########################################################################### ###########################################################################
...@@ -468,6 +476,9 @@ def hostconfig(self): ...@@ -468,6 +476,9 @@ def hostconfig(self):
if cflags: if cflags:
cfg.write(cmake_cache_entry("CMAKE_C_FLAGS", cflags)) cfg.write(cmake_cache_entry("CMAKE_C_FLAGS", cflags))
cxxflags = cppflags + " ".join(spec.compiler_flags["cxxflags"]) cxxflags = cppflags + " ".join(spec.compiler_flags["cxxflags"])
if spec.satisfies("%oneapi@2025:"):
cxxflags += "-Wno-error=missing-template-arg-list-after-template-kw "
cxxflags += "-Wno-missing-template-arg-list-after-template-kw"
if cxxflags: if cxxflags:
cfg.write(cmake_cache_entry("CMAKE_CXX_FLAGS", cxxflags)) cfg.write(cmake_cache_entry("CMAKE_CXX_FLAGS", cxxflags))
fflags = " ".join(spec.compiler_flags["fflags"]) fflags = " ".join(spec.compiler_flags["fflags"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment