[PATCH] D14290: compiler-rt: add make solution to bootstrap for mingw-w64

Martell Malone via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 3 09:23:58 PST 2015


martell created this revision.
martell added a subscriber: llvm-commits.
martell set the repository for this revision to rL LLVM.
Herald added a subscriber: aemerson.

I know we will be moving forward with the cmake fixes but I wanted to submit something useful for uses in the mean time.
>From what I can gather this doesn't use autotool and just invokes make directly so it might be something to have until cmake is ready to bootstrap.

For some reason I can't currently get it to compile chkstk or the recently added chkstk2.?

I intend to update this to support 3 targets x86_64 i686 and armv7 (aka thumb2 win NT)

Repository:
  rL LLVM

http://reviews.llvm.org/D14290

Files:
  make/platform/clang_mingw.mk

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14290.39078.patch
Type: text/x-patch
Size: 763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151103/2825506b/attachment.bin>


More information about the llvm-commits mailing list