Skip to content

Commit c006380

Browse files
Fix CI build failure by reverting --disable-thread-safety flag
The --disable-thread-safety flag was causing 'unknown type name slock_t' compilation errors throughout PostgreSQL codebase. The original --disable-spinlocks flag alone is sufficient for Emscripten builds. Co-Authored-By: Dan Lynch <pyramation@gmail.com>
1 parent 2d6d4ef commit c006380

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

versions/13/patches/emscripten_disable_spinlocks.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
override PG_CONFIGURE_FLAGS += -q --without-readline --without-zlib
77
+
8-
+# Disable spinlocks and thread safety when building with Emscripten
8+
+# Disable spinlocks when building with Emscripten
99
+ifdef EMSCRIPTEN
10-
+override PG_CONFIGURE_FLAGS += --disable-spinlocks --disable-thread-safety
10+
+override PG_CONFIGURE_FLAGS += --disable-spinlocks
1111
+endif
1212

1313
override TEST_CFLAGS += -I. -I./vendor -g

0 commit comments

Comments
 (0)