We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ea6f40 commit 9c7034fCopy full SHA for 9c7034f
1 file changed
meson.build
@@ -75,6 +75,11 @@ if get_option('enable-autodiff') or get_option('enable-directdiff')
75
codi_dep = [declare_dependency(include_directories: 'externals/codi/include')]
76
codi_rev_args = ['-DCODI_REVERSE_TYPE']
77
codi_for_args = ['-DCODI_FORWARD_TYPE']
78
+
79
+ if get_option('debug')
80
+ codi_rev_args += '-DCODI_EnableAssert'
81
+ codi_for_args += '-DCODI_EnableAssert'
82
+ endif
83
endif
84
85
if get_option('enable-autodiff') and not omp
0 commit comments