1
0
mirror of https://github.com/cldellow/sqlite-parquet-vtable.git synced 2025-04-03 09:39:47 +00:00

Allow for PGO

This commit is contained in:
Addie Morrison 2019-12-10 22:42:41 -06:00
parent 4675bd2d3f
commit 223d4b7905
2 changed files with 11 additions and 6 deletions

View File

@ -5,4 +5,8 @@ COPY ci/arrow-centos.repo /etc/yum.repos.d/Apache-Arrow.repo
RUN yum install -y parquet-devel RUN yum install -y parquet-devel
WORKDIR /src WORKDIR /src
COPY . /src COPY . /src
RUN mkdir builddir && meson builddir && cd builddir && ninja-build RUN mkdir builddir && meson builddir
WORKDIR builddir
RUN meson configure -Db_pgo=generate && ninja-build
RUN ninja-build test
#RUN meson configure -Db_pgo=use && ninja-build

View File

@ -6,11 +6,12 @@ icu = dependency('icu-i18n', version: '>=50.2')
dependencies = [arrow, parquet, sqlite, icu] dependencies = [arrow, parquet, sqlite, icu]
sources = ['src/parquet.cc', 'src/parquet_cursor.cc', 'src/parquet_filter.cc', 'src/parquet_table.cc'] sources = ['src/parquet.cc', 'src/parquet_cursor.cc', 'src/parquet_filter.cc', 'src/parquet_table.cc']
static_library('sqlite-parquet-vtable-static', shared_library('parquet',
dependencies: dependencies,
sources: sources
)
shared_library('sqlite-parquet-vtable',
dependencies: dependencies, dependencies: dependencies,
sources: sources sources: sources
) )
test('Load the extension', find_program('tests/test-smoke'))
test('Try loading an unsupported file', find_program('tests/test-bad-create-table'))
test('Try loading a non-existent file', find_program('tests/test-non-existent'))