Skip to content

Commit 9c7034f

Browse files
committed
Enable CoDiPack assertions in debug builds.
1 parent 1ea6f40 commit 9c7034f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ if get_option('enable-autodiff') or get_option('enable-directdiff')
7575
codi_dep = [declare_dependency(include_directories: 'externals/codi/include')]
7676
codi_rev_args = ['-DCODI_REVERSE_TYPE']
7777
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
7883
endif
7984

8085
if get_option('enable-autodiff') and not omp

0 commit comments

Comments
 (0)