summaryrefslogtreecommitdiff
path: root/testsuite/mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-12-13 12:47:22 +0000
committerSimon Marlow <marlowsd@gmail.com>2011-12-13 13:12:24 +0000
commit1f725a82331ccc1a38d82df31d1208bd6a0658c8 (patch)
tree8b23b91335fe0ace669240fa23fcd47105044463 /testsuite/mk
parentce7325ceb268a9468c8f36e7b86a83b52ac62aaf (diff)
downloadhaskell-1f725a82331ccc1a38d82df31d1208bd6a0658c8.tar.gz
Get the value of $(AR) from ghc --info
On Windows, 'ar' might not necessarily be on $PATH.
Diffstat (limited to 'testsuite/mk')
-rw-r--r--testsuite/mk/boilerplate.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/mk/boilerplate.mk b/testsuite/mk/boilerplate.mk
index 4eeb1aa251..d8c7c9e75e 100644
--- a/testsuite/mk/boilerplate.mk
+++ b/testsuite/mk/boilerplate.mk
@@ -138,6 +138,11 @@ endif
$(eval $(call get-ghc-field,GhcRTSWays,RTS ways))
+$(eval $(call get-ghc-field,AR,ar command))
+ifeq "$(AR)" ""
+AR = ar
+endif
+
TOP_ABS := $(abspath $(TOP))
$(eval $(call canonicalise,TOP_ABS))