Skip to content

Commit

Permalink
clfft: workaround compiler error (spack#42519)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke authored Feb 13, 2024
1 parent 4d7898a commit e37c099
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions var/spack/repos/builtin/packages/clfft/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit e37c099

Please sign in to comment.