@@ -146,9 +146,6 @@ opts = [
146146 [ ' fixed-point-debug' , ' FIXED_DEBUG' ],
147147 [ ' custom-modes' , ' CUSTOM_MODES' ],
148148 [ ' float-approx' , ' FLOAT_APPROX' ],
149- [ ' enable-deep-plc' , ' ENABLE_DEEP_PLC' ],
150- [ ' enable-dred' , ' ENABLE_DRED' ],
151- [ ' enable-osce' , ' ENABLE_OSCE' ],
152149 [ ' assertions' , ' ENABLE_ASSERTIONS' ],
153150 [ ' hardening' , ' ENABLE_HARDENING' ],
154151 [ ' fuzzing' , ' FUZZING' ],
@@ -164,6 +161,21 @@ foreach opt : opts
164161 set_variable (' opt_' + opt[0 ].underscorify(), opt_foo)
165162endforeach
166163
164+ feat = [
165+ [ ' deep-plc' , ' ENABLE_DEEP_PLC' ],
166+ [ ' dred' , ' ENABLE_DRED' ],
167+ [ ' osce' , ' ENABLE_OSCE' ],
168+ ]
169+
170+ foreach opt : feat
171+ # we assume these are all boolean options
172+ opt_foo = get_option (opt[0 ])
173+ if opt_foo.enabled()
174+ opus_conf.set(opt[1 ], 1 )
175+ endif
176+ set_variable (' opt_' + opt[0 ].underscorify(), opt_foo)
177+ endforeach
178+
167179opt_asm = get_option (' asm' )
168180opt_rtcd = get_option (' rtcd' )
169181opt_intrinsics = get_option (' intrinsics' )
@@ -175,7 +187,7 @@ if disable_float_api
175187 opus_conf.set(' DISABLE_FLOAT_API' , 1 )
176188endif
177189
178- if not get_option (' enable- dnn-debug-float' )
190+ if not get_option (' dnn-debug-float' ).enabled( )
179191 opus_conf.set(' DISABLE_DEBUG_FLOAT' , 1 )
180192endif
181193
0 commit comments