add compilation option to sqlite (#12794)
* add compilation option to sqlite * rename variant * fix bug * re-rename variant
This commit is contained in:
parent
96ba5a1265
commit
b95b4bb9e0
@ -34,6 +34,7 @@ class Sqlite(AutotoolsPackage):
|
||||
'(unsafe for <3.26.0.0 due to Magellan).')
|
||||
|
||||
variant('rtree', default=False, description='Build with Rtree module')
|
||||
variant('column_metadata', default=False, description="Build with COLUMN_METADATA")
|
||||
|
||||
# See https://blade.tencent.com/magellan/index_en.html
|
||||
conflicts('+fts', when='@:3.25.99.99')
|
||||
@ -106,6 +107,10 @@ def configure_args(self):
|
||||
if '+rtree' in self.spec:
|
||||
args.append('CPPFLAGS=-DSQLITE_ENABLE_RTREE=1')
|
||||
|
||||
# Ref: https://sqlite.org/compile.html
|
||||
if '+column_metadata' in self.spec:
|
||||
args.append('CPPFLAGS=-DSQLITE_ENABLE_COLUMN_METADATA=1')
|
||||
|
||||
return args
|
||||
|
||||
@run_after('install')
|
||||
|
Loading…
Reference in New Issue
Block a user