fix(unity): GridFire supports unity builds

GridFire can now support unity builds. This is useful for python
bindings. The main limitation is that openssl (a dependency of
libplugin) does not support unity builds. Therefore when building in a
unity build libplugin must be disabled. This is done with the
-Dunity-safe=ture flag at setup time
This commit is contained in:
2025-11-28 11:56:41 -05:00
parent bb558811c6
commit 75a88b9720
8 changed files with 26 additions and 9 deletions

View File

@@ -4,3 +4,4 @@ option('build-python', type: 'boolean', value: false, description: 'build the py
option('build-tests', type: 'boolean', value: true, description: 'build the test suite')
option('build-fortran', type: 'boolean', value: false, description: 'build fortran module support')
option('unsafe-fortran', type: 'boolean', value: false, description: 'Allow untested fortran compilers (compilers other than gfortran)')
option('unity-safe', type: 'boolean', value: false, description: 'Enable safe unity builds for better compatibility across different compilers and platforms')