modeco80
182266ec3c
a better compiler. also i dont need a seperate dev machine with vs 2013 installed anymore, thank god
20 lines
353 B
Makefile
20 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
|