You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
postgres: fix stage 2 self-hosting regression via minimal src surface
step 2 added a usesPostgres field to LLVMGenerator plus a cs_pg_ prefix
check in generateExternDeclaration plus a trailing-return workaround in
parser-native/transformer.ts. any of those shifted enough state that the
native stage 1 compiler began miscompiling generateGlobalVariableDeclarations
— storing a pointer into a double slot for isClassInstance. --quick
skipped stage 2 so it passed local verify but failed CI.
fix: do the -lpq/pg-bridge.o detection entirely in compiler.ts and
native-compiler-lib.ts by walking generator.declaredExternFunctions for
anything starting with cs_pg_. no changes to llvm-generator.ts,
generator-context.ts, or parser-native/transformer.ts. feature is
functionally identical end-to-end (verified against local postgres).
npm run verify (full, including stage 2) is green on this commit.
0 commit comments