@@ -51,17 +51,6 @@ class Fckit(CMakePackage):
51
51
depends_on ("llvm-openmp" , when = "+openmp %apple-clang" , type = ("build" , "run" ))
52
52
variant ("shared" , default = True , description = "Build shared libraries" )
53
53
variant ("fismahigh" , default = False , description = "Apply patching for FISMA-high compliance" )
54
- variant (
55
- "finalize_ddts" ,
56
- default = "auto" ,
57
- description = "Enable / disable automatic finalization of derived types" ,
58
- values = ("auto" , "no" , "yes" ),
59
- )
60
-
61
- # fckit fails to auto-detect/switch off finalization
62
- # of derived types for latest Intel compilers. If set
63
- # to auto, turn off in cmake_args. If set to yes, abort.
64
- conflicts (
"%[email protected] :" ,
when = "finalize_ddts=yes" )
65
54
66
55
def cmake_args (self ):
67
56
args = [
@@ -73,11 +62,11 @@ def cmake_args(self):
73
62
if self .spec .satisfies ("~shared" ):
74
63
args .append ("-DBUILD_SHARED_LIBS=OFF" )
75
64
76
- if "finalize_ddts=auto" not in self . spec :
77
- args . append ( self . define_from_variant ( "ENABLE_FINAL" , "finalize_ddts" ))
78
- elif "finalize_ddts=auto" in self . spec and self . spec . satisfies ( "%[email protected] :" ):
79
- # See comment above (conflicts for finalize_ddts)
80
- args .append ("-DENABLE_FINAL=OFF" )
65
+ # Turn off finalization of derived data types (DDTs) because it is
66
+ # flaky and we can't rely on fckit to auto-detect if the compiler
67
+ # supports the feature or not.
68
+ # https://github.com/JCSDA/spack-stack/issues/1521
69
+ args .append ("-DENABLE_FINAL=OFF" )
81
70
82
71
if (
83
72
self .spec .satisfies ("%intel" )
0 commit comments