apptainer: add flag_handler to discard spack flags (#38843)
This commit is contained in:
parent
6a762501f8
commit
ca16066eef
1 changed files with 5 additions and 0 deletions
|
@ -53,3 +53,8 @@ def config_options(self):
|
||||||
if spec.satisfies("@1.1.0: +suid"):
|
if spec.satisfies("@1.1.0: +suid"):
|
||||||
options.append("--with-suid")
|
options.append("--with-suid")
|
||||||
return options
|
return options
|
||||||
|
|
||||||
|
def flag_handler(self, name, flags):
|
||||||
|
# Certain go modules this build pulls in cannot be built with anything
|
||||||
|
# other than -O0. Best to just discard any injected flags.
|
||||||
|
return (None, flags, None)
|
||||||
|
|
Loading…
Reference in a new issue