mirror of https://github.com/citusdata/citus.git
Compile bitcode with llvm-14
parent
bb22141b8b
commit
c7cc136e6b
|
@ -6,7 +6,7 @@ orbs:
|
||||||
parameters:
|
parameters:
|
||||||
image_suffix:
|
image_suffix:
|
||||||
type: string
|
type: string
|
||||||
default: '-v186a1be'
|
default: '-dev-aa82c25'
|
||||||
pg13_version:
|
pg13_version:
|
||||||
type: string
|
type: string
|
||||||
default: '13.8'
|
default: '13.8'
|
||||||
|
|
|
@ -33,7 +33,7 @@ build_ext() {
|
||||||
# do everything in a subdirectory to avoid clutter in current directory
|
# do everything in a subdirectory to avoid clutter in current directory
|
||||||
mkdir -p "${builddir}" && cd "${builddir}"
|
mkdir -p "${builddir}" && cd "${builddir}"
|
||||||
|
|
||||||
CFLAGS=-Werror "${basedir}/configure" PG_CONFIG="/usr/lib/postgresql/${pg_major}/bin/pg_config" --enable-coverage --with-security-flags
|
CFLAGS=-Werror "${basedir}/configure" PG_CONFIG="/usr/lib/postgresql/${pg_major}/bin/pg_config" --enable-coverage --with-security-flags LLVM_CONFIG=llvm-config-14 CLANG=clang-14
|
||||||
|
|
||||||
installdir="${builddir}/install"
|
installdir="${builddir}/install"
|
||||||
make -j$(nproc) && mkdir -p "${installdir}" && { make DESTDIR="${installdir}" install-all || make DESTDIR="${installdir}" install ; }
|
make -j$(nproc) && mkdir -p "${installdir}" && { make DESTDIR="${installdir}" install-all || make DESTDIR="${installdir}" install ; }
|
||||||
|
|
|
@ -312,6 +312,8 @@ CitusQueryStatsShmemShutdown(int code, Datum arg)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32 num_entries = hash_get_num_entries(queryStatsHash);
|
||||||
|
|
||||||
FILE *file = AllocateFile(CITUS_STATS_DUMP_FILE ".tmp", PG_BINARY_W);
|
FILE *file = AllocateFile(CITUS_STATS_DUMP_FILE ".tmp", PG_BINARY_W);
|
||||||
if (file == NULL)
|
if (file == NULL)
|
||||||
{
|
{
|
||||||
|
@ -323,8 +325,6 @@ CitusQueryStatsShmemShutdown(int code, Datum arg)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 num_entries = hash_get_num_entries(queryStatsHash);
|
|
||||||
|
|
||||||
if (fwrite(&num_entries, sizeof(int32), 1, file) != 1)
|
if (fwrite(&num_entries, sizeof(int32), 1, file) != 1)
|
||||||
{
|
{
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue