From 223d4b790542655f86b3e4c7fdaa0a80382c5c81 Mon Sep 17 00:00:00 2001 From: Addie Morrison Date: Tue, 10 Dec 2019 22:42:41 -0600 Subject: [PATCH] Allow for PGO --- CentOS-7.dockerfile | 6 +++++- meson.build | 11 ++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CentOS-7.dockerfile b/CentOS-7.dockerfile index f0f0bc5..bb1fae2 100644 --- a/CentOS-7.dockerfile +++ b/CentOS-7.dockerfile @@ -5,4 +5,8 @@ COPY ci/arrow-centos.repo /etc/yum.repos.d/Apache-Arrow.repo RUN yum install -y parquet-devel WORKDIR /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 diff --git a/meson.build b/meson.build index d8e5129..e630c01 100644 --- a/meson.build +++ b/meson.build @@ -6,11 +6,12 @@ icu = dependency('icu-i18n', version: '>=50.2') dependencies = [arrow, parquet, sqlite, icu] sources = ['src/parquet.cc', 'src/parquet_cursor.cc', 'src/parquet_filter.cc', 'src/parquet_table.cc'] -static_library('sqlite-parquet-vtable-static', - dependencies: dependencies, - sources: sources -) -shared_library('sqlite-parquet-vtable', +shared_library('parquet', dependencies: dependencies, 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')) +