SAPIServer/speech2/build/arch.mk
Lily Tsuru cc59c0c6db Switch to clang-cl
It's less painful than mingw.
I'll next get the DLL going like this, though it'll be pretty easy.
2024-07-19 05:10:10 -04:00

27 lines
507 B
Makefile

x86_Valid=yes
x86_TRIPLET=i686-pc-windows-msvc
# Only supported arch.
ifeq ($(ARCH),)
ARCH = x86
endif
ifeq ($(VCDIR),)
$(error Please set VCDIR in your environment to an appropiate path)
endif
ifneq ($($(ARCH)_Valid),yes)
$(error Please select a valid target)
endif
CC = clang -target $($(ARCH)_TRIPLET)
CXX = clang -target $($(ARCH)_TRIPLET)
LD = lld-link
# This is $(WINDRES) thanks to the fact I
# depended on the (relatively low quality)
# MinGW toolchain. Thank God For LLVM.
WINDRES = llvm-rc