Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More cleanup #11

Draft
wants to merge 28 commits into
base: pglite/REL_16_STABLE
Choose a base branch
from
Draft

More cleanup #11

wants to merge 28 commits into from

Conversation

copiltembel
Copy link
Collaborator

@copiltembel copiltembel commented Jan 22, 2025

Mostly cleanups and simplifications.
Introduced a simple gh action to build postgres-pglite (postgres wasm).

@copiltembel copiltembel marked this pull request as draft January 22, 2025 13:54
@copiltembel copiltembel changed the title DO NOT MERGE! More cleanup More cleanup Jan 29, 2025
@copiltembel copiltembel marked this pull request as ready for review January 29, 2025 16:56
@copiltembel copiltembel requested a review from samwillis January 29, 2025 16:56
Copy link
Collaborator

@pmp-p pmp-p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also need to remove all the imports/exports lists. wasi wasm-objdump is doing a good job at auto generating them and it can run anywhere wasmtime is running.

@@ -19446,7 +19446,7 @@ ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"


ac_config_links="$ac_config_links src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"

ac_config_links="$ac_config_links src/include/port/wasm_common.h:src/include/port/wasm_common.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to avoid patching configure file, this file is auto generated whenever upstream update it with autotools and makes it hard for diff to apply. prefer add changes to CONFIG_SITE when it is possible

@@ -240,15 +240,6 @@ END

. ${PGROOT}/pgopts.sh

# make sure no non-mvp feature gets in.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some compilers will try to use cpu intrinsics by default and some of them are allowed or emulated but outside MVP which may breaks compat on mobile browsers. Better force off to keep close to wasm MVP

END
fi
fi

if EM_PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig CONFIG_SITE=${PGROOT}/config.site emconfigure $CNF --with-template=$BUILD
if EM_PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig ac_cv_exeext=$ACCVEXEEXT emconfigure $CNF --with-template=$BUILD
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do not scatter autoconf modifiers, keep them in one file passed with CONFIG_SITE. this may be need to get homogenous build of third party libraries

@copiltembel copiltembel marked this pull request as draft February 4, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants