mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-04 00:42:24 -06:00 
			
		
		
		
	- github.com/jackc/pgx/v5 v5.7.5 -> v5.7.6 - github.com/ncruces/go-sqlite3 v0.28.0 -> v0.29.0 - github.com/tdewolff/minify/v2 v2.24.2 -> v2.24.3 - golang.org/x/oauth2 v0.30.0 -> v0.31.0 - golang.org/x/sys v0.35.0 -> v0.36.0 - golang.org/x/text v0.28.0 -> v0.29.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4422 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
		
			
				
	
	
		
			35 lines
		
	
	
		
			No EOL
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			No EOL
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env bash
 | 
						|
set -euo pipefail
 | 
						|
 | 
						|
cd -P -- "$(dirname -- "$0")"
 | 
						|
 | 
						|
ROOT=../
 | 
						|
BINARYEN="$ROOT/tools/binaryen/bin"
 | 
						|
WASI_SDK="$ROOT/tools/wasi-sdk/bin"
 | 
						|
 | 
						|
trap 'rm -f sqlite3.tmp' EXIT
 | 
						|
 | 
						|
"$WASI_SDK/clang" --target=wasm32-wasi -std=c23 -g0 -O2 \
 | 
						|
	-Wall -Wextra -Wno-unused-parameter -Wno-unused-function \
 | 
						|
	-o sqlite3.wasm "$ROOT/sqlite3/main.c" \
 | 
						|
	-I"$ROOT/sqlite3/libc" -I"$ROOT/sqlite3" \
 | 
						|
	-mexec-model=reactor \
 | 
						|
	-mmutable-globals -mnontrapping-fptoint \
 | 
						|
	-msimd128 -mbulk-memory -msign-ext \
 | 
						|
	-mreference-types -mmultivalue \
 | 
						|
	-mno-extended-const \
 | 
						|
	-fno-stack-protector \
 | 
						|
	-Wl,--stack-first \
 | 
						|
	-Wl,--import-undefined \
 | 
						|
	-Wl,--initial-memory=327680 \
 | 
						|
	-D_HAVE_SQLITE_CONFIG_H \
 | 
						|
	-DSQLITE_CUSTOM_INCLUDE=sqlite_opt.h \
 | 
						|
	$(awk '{print "-Wl,--export="$0}' exports.txt)
 | 
						|
 | 
						|
"$BINARYEN/wasm-ctor-eval" -g -c _initialize sqlite3.wasm -o sqlite3.tmp
 | 
						|
"$BINARYEN/wasm-opt" -g sqlite3.tmp -o sqlite3.wasm \
 | 
						|
	--low-memory-unused --gufa --generate-global-effects --converge -O3 \
 | 
						|
	--enable-mutable-globals --enable-nontrapping-float-to-int \
 | 
						|
	--enable-simd --enable-bulk-memory --enable-sign-ext \
 | 
						|
	--enable-reference-types --enable-multivalue \
 | 
						|
	--strip --strip-producers |