apptainer: add flag_handler to discard spack flags (#38843)

This commit is contained in:
snehring 2023-07-12 06:31:47 -05:00 committed by GitHub
parent 6a762501f8
commit ca16066eef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)