py-matplotlib %oneapi: add cxxflags=-Wno-error=register (#39469)

This commit is contained in:
eugeneswalker
2023-08-17 01:13:09 -07:00
committed by GitHub
parent 3347372a7b
commit b613bf3855

View File

@@ -261,6 +261,12 @@ def config_file(self):
def archive_files(self):
return [os.path.join(self.build_directory, self.config_file)]
def flag_handler(self, name, flags):
if name == "cxxflags":
if self.spec.satisfies("%oneapi"):
flags.append("-Wno-error=register")
return (flags, None, None)
def setup_build_environment(self, env):
include = []
library = []