Index: make/platform/clang_mingw.mk =================================================================== --- /dev/null +++ make/platform/clang_mingw.mk @@ -0,0 +1,29 @@ +Description := Static runtime libraries for mingw-w64 + +### + +CC := clang +AR := llvm-ar + +Arch := +Configs := + +SupportedArches := x86_64 + +Configs += builtins-x86_64 +Arch.builtins-x86_64 := x86_64 + +### + +CFLAGS := -Wall -Werror -O3 -fomit-frame-pointer +CFLAGS.builtins-x86_64 := -target x86_64-windows-gnu $(CFLAGS) -rtlib=compiler-rt -m64 + +FUNCTIONS.builtins-x86_64 := $(CommonFunctions) $(ArchFunctions.x86_64) chkstk + +# Always use optimized variants. +OPTIMIZED := 1 + +# We don't need to use visibility hidden on Linux. +VISIBILITY_HIDDEN := 0 + +SHARED_LIBRARY_SUFFIX := a