21 lines
353 B
Makefile
21 lines
353 B
Makefile
|
#x86_Valid=yes # FOR NOW
|
||
|
#x86_TRIPLET=i686-pc-msvc-windows
|
||
|
|
||
|
x64_Valid=yes
|
||
|
x64_TRIPLET=x86_64-pc-msvc-windows
|
||
|
|
||
|
|
||
|
ifeq ($(ARCH),)
|
||
|
ARCH = x64
|
||
|
endif
|
||
|
|
||
|
ifneq ($($(ARCH)_Valid),yes)
|
||
|
$(error Please select a valid target)
|
||
|
endif
|
||
|
|
||
|
# if we really need C
|
||
|
CC = clang --target=$($(ARCH)_TRIPLET)
|
||
|
CXX = clang++ --target=$($(ARCH)_TRIPLET)
|
||
|
LD := lld-link
|
||
|
RC := llvm-rc
|