1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 06:44:02 +00:00

ci: try fixing retry logic, make makefile use cl on Windows

This commit is contained in:
Samuel Štancl 2025-01-02 06:28:15 +01:00
parent 93fe982b12
commit c5f187d2c7
2 changed files with 12 additions and 4 deletions

View file

@ -4,10 +4,8 @@ OUTPUT :=
ifeq ($(OS),Windows_NT)
OUTPUT = lib/noattach.dll
CCFLAGS = -shared
else
UNAME := $(shell uname)
CCFLAGS = -fPIC -Os -shared
ifeq ($(UNAME),Darwin)
ifeq ($(shell uname -m),arm64)
OUTPUT = lib/arm/noattach.dylib
@ -32,5 +30,9 @@ headers:
cp sqlite-amalgamation-3470200/*.h .
$(OUTPUT): noattach.c
ifeq ($(OS),Windows_NT)
cl /LD /Fe:$(OUTPUT) $<
else
# We don't link against libsqlite3 since PHP statically links its own libsqlite3.
$(CC) $(CCFLAGS) -o $@ $<
$(CC) -fPIC -Os -shared -o $@ $<
endif