mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
* queue.yml: remove TENANCY_VERSION env var from test.sh * add DisallowSqliteAttach feature * Fix code style (php-cs-fixer) * ci: add cd to each step * ci: simpler solution to race conditions, proper os/arch matrix * ci: fix runs-on matrix * ci: fix workflow on windows, fix makefile * Auto-build: Update extensions [skip ci] * Auto-build: Update extensions [skip ci] * ci: try fixing retry logic, make makefile use cl on Windows * ci: use the current branch for rebase * ci: try calling vcvars64 * ci: misc minor fixes * ci: try fixing c compiler on windows * ci: misc minor fixes * ci: add debug steps * ci: try to fix windows build * ci: try using clang on windows * ci: windows fixes, makefile fix * Auto-build: Update extensions [skip ci] * ci: dont produce .exp .lib on Windows * ci: try forcing shell: bash on commit step * ci: try to get linux cross-compilation working * ci: reformulate condition * ci: fix syntax error * ci: correct debian image name * Auto-build: Update extensions [skip ci] * ci: try to set up macOS cross-compilation * ci: add ARCH variable to makefile, override it during cross-compilation * Auto-build: Update extensions [skip ci] * ci: X64 -> x64 * ci: only trigger extensions.yml on pushes to extensions/ * fix tests on x64 * ci: try using bash for pushing on windows; ignore phpstan error * fix test failing in ci but passing locally * bump php version in composer.json, trigger extensions.yml build * remove comment * noattach: more explicit return values, avoid potential non-bool return values * makefile: use -Os on Windows * ci: use make -B * ci: try triggering extensions build on extensions.yml file changes * Auto-build: Update extensions [skip ci] * Auto-build: Update extensions [skip ci] * ci: remove windows linker flag, use a whitelist for git add * Auto-build: Update extensions [skip ci] * Auto-build: Update extensions [skip ci] * Auto-build: Update extensions [skip ci] * fix path in feature class, minor refactor * Fix code style (php-cs-fixer) --------- Co-authored-by: PHP CS Fixer <phpcsfixer@example.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
41 lines
883 B
Makefile
41 lines
883 B
Makefile
.PHONY: all headers
|
|
|
|
OUTPUT :=
|
|
|
|
CCFLAGS += -shared -Os
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
OUTPUT = lib/noattach.dll
|
|
CC = clang
|
|
else
|
|
UNAME := $(shell uname)
|
|
CCFLAGS += -fPIC
|
|
ARCH := $(if $(ARCH),$(ARCH),$(shell uname -m))
|
|
ifeq ($(UNAME),Darwin)
|
|
ifeq ($(ARCH),arm64)
|
|
OUTPUT = lib/arm/noattach.dylib
|
|
else
|
|
OUTPUT = lib/noattach.dylib
|
|
endif
|
|
else
|
|
ifeq ($(ARCH),aarch64)
|
|
OUTPUT = lib/arm/noattach.so
|
|
else
|
|
OUTPUT = lib/noattach.so
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
$(info OUTPUT=$(OUTPUT))
|
|
|
|
all: $(OUTPUT)
|
|
|
|
headers:
|
|
# To simplify compilation across platforms, we include sqlite3ext.h in this directory.
|
|
curl -L https://www.sqlite.org/2024/sqlite-amalgamation-3470200.zip -o sqlite-src.zip
|
|
unzip sqlite-src.zip
|
|
cp sqlite-amalgamation-3470200/*.h .
|
|
|
|
$(OUTPUT): noattach.c
|
|
# We don't link against libsqlite3 since PHP statically links its own libsqlite3.
|
|
$(CC) $(CCFLAGS) -o $@ $<
|