mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 05:14:03 +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
|
- name: Debug PATH
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
run: |
|
run: |
|
||||||
|
where gcc
|
||||||
|
gcc --version
|
||||||
|
where clang
|
||||||
|
clang --versino
|
||||||
& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
echo $env:PATH
|
echo $env:PATH
|
||||||
where cl
|
where cl
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
.PHONY: all headers
|
.PHONY: all headers
|
||||||
|
|
||||||
OUTPUT :=
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
OUTPUT = lib/noattach.dll
|
OUTPUT = lib/noattach.dll
|
||||||
|
CCFLAGS = -shared
|
||||||
|
CC = clang
|
||||||
else
|
else
|
||||||
UNAME := $(shell uname)
|
UNAME := $(shell uname)
|
||||||
|
CCFLAGS = -fPIC -Os -shared
|
||||||
ifeq ($(UNAME),Darwin)
|
ifeq ($(UNAME),Darwin)
|
||||||
ifeq ($(shell uname -m),arm64)
|
ifeq ($(shell uname -m),arm64)
|
||||||
OUTPUT = lib/arm/noattach.dylib
|
OUTPUT = lib/arm/noattach.dylib
|
||||||
|
|
@ -32,9 +33,5 @@ headers:
|
||||||
cp sqlite-amalgamation-3470200/*.h .
|
cp sqlite-amalgamation-3470200/*.h .
|
||||||
|
|
||||||
$(OUTPUT): noattach.c
|
$(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.
|
# We don't link against libsqlite3 since PHP statically links its own libsqlite3.
|
||||||
$(CC) -fPIC -Os -shared -o $@ $<
|
$(CC) $(CCFLAGS) -o $@ $<
|
||||||
endif
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue