mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:34:04 +00:00
ci: try using clang on windows
This commit is contained in:
parent
3368a6dc27
commit
2bee323ef7
2 changed files with 8 additions and 7 deletions
4
.github/workflows/extensions.yml
vendored
4
.github/workflows/extensions.yml
vendored
|
|
@ -45,6 +45,10 @@ jobs:
|
|||
- name: Debug PATH
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
where gcc
|
||||
gcc --version
|
||||
where clang
|
||||
clang --versino
|
||||
& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||
echo $env:PATH
|
||||
where cl
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
.PHONY: all headers
|
||||
|
||||
OUTPUT :=
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
OUTPUT = lib/noattach.dll
|
||||
CCFLAGS = -shared
|
||||
CC = clang
|
||||
else
|
||||
UNAME := $(shell uname)
|
||||
CCFLAGS = -fPIC -Os -shared
|
||||
ifeq ($(UNAME),Darwin)
|
||||
ifeq ($(shell uname -m),arm64)
|
||||
OUTPUT = lib/arm/noattach.dylib
|
||||
|
|
@ -32,9 +33,5 @@ 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) -fPIC -Os -shared -o $@ $<
|
||||
endif
|
||||
$(CC) $(CCFLAGS) -o $@ $<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue