rempi: patch rempi_message_manager.h: include string (#34982)

This commit is contained in:
eugeneswalker 2023-01-17 15:33:10 -06:00 committed by GitHub
parent b148a43f08
commit c6d715c188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -0,0 +1,11 @@
diff -ruN spack-src/src/rempi_message_manager.h spack-src-patched/src/rempi_message_manager.h
--- spack-src/src/rempi_message_manager.h 2018-06-22 11:07:41.000000000 -0700
+++ spack-src-patched/src/rempi_message_manager.h 2023-01-17 07:24:04.252076735 -0800
@@ -26,6 +26,7 @@
#include <unordered_map>
#include <list>
+#include <string>
#include "mpi.h"

View File

@ -23,12 +23,13 @@ class Rempi(AutotoolsPackage):
depends_on("libtool", type="build")
depends_on("libpciaccess", type="link")
patch("include-string.patch", when="@1.1.0")
def flag_handler(self, name, flags):
iflags = []
if name == "cflags":
if self.spec.satisfies("%oneapi@2022.2.0:"):
iflags.append("-Wno-error=implicit-function-declaration")
return (iflags, None, None)
flags.append("-Wno-error=implicit-function-declaration")
return (flags, None, None)
def setup_build_environment(self, env):
if self.spec.satisfies("%cce"):