summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-09-16 00:42:32 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-09-16 00:42:32 +0000
commitccfaa4be4378b1d4c71a08664f9c5ddcdcfab8ef (patch)
tree68c3b9cdf1824eece329ff233197397626a11cf7 /Makefile.rules
parentea606bb76b9922f67b678ea48645cdc9bfa0305b (diff)
downloadllvm-ccfaa4be4378b1d4c71a08664f9c5ddcdcfab8ef.tar.gz
llvm-ccfaa4be4378b1d4c71a08664f9c5ddcdcfab8ef.tar.bz2
llvm-ccfaa4be4378b1d4c71a08664f9c5ddcdcfab8ef.tar.xz
build: Add support for a TOOL_ORDER_FILE variable so commands can build with an
order file on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index efafc82be2..ee17b999fb 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -1326,6 +1326,18 @@ endif
endif
#---------------------------------------------------------
+# Tool Order File Support
+#---------------------------------------------------------
+
+ifeq ($(HOST_OS),Darwin)
+ifdef TOOL_ORDER_FINE
+
+LD.Flags += -Wl,-order_file,$(TOOL_ORDER_FILE)
+
+endif
+endif
+
+#---------------------------------------------------------
# Tool Version Info Support
#---------------------------------------------------------