summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/clfft/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/clfft/package.py b/var/spack/repos/builtin/packages/clfft/package.py
index 38deb524c7..a51360a608 100644
--- a/var/spack/repos/builtin/packages/clfft/package.py
+++ b/var/spack/repos/builtin/packages/clfft/package.py
@@ -35,6 +35,12 @@ class Clfft(CMakePackage):
root_cmakelists_dir = "src"
+ def flag_handler(self, name, flags):
+ if name == "cxxflags":
+ # https://github.com/clMathLibraries/clFFT/issues/237
+ flags.append("-fpermissive")
+ return (flags, None, None)
+
def cmake_args(self):
args = [
self.define_from_variant("BUILD_CLIENT", "client"),