summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2017-06-02 13:15:52 -0400
committerBen Gamari <ben@smart-cactus.org>2017-06-02 13:15:53 -0400
commitff363bd74c8b2505b92b39d5fedcf95b8ab7365a (patch)
tree6521a88ee20f9ac287b342b7fcd33e4eb018f882 /ghc.mk
parenta786b136f48dfcf907dad55bcdbc4fcd247f2794 (diff)
downloadhaskell-ff363bd74c8b2505b92b39d5fedcf95b8ab7365a.tar.gz
ghc.mk: Ensure that ghc-pkg path is quoted
Otherwise this will fail if the prefix path contains spaces. Thanks to marinelli for pointing this out. Test Plan: Validate Reviewers: austin Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3604
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index 2272569db4..3fafcf0ac9 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1039,7 +1039,7 @@ install_packages: rts/dist/package.conf.install
# Finally, update package.cache to ensure it's newer than the registration
# files. This avoids #13375.
- $(INSTALLED_GHC_PKG_REAL) --global-package-db "$(INSTALLED_PACKAGE_CONF)" recache
+ "$(INSTALLED_GHC_PKG_REAL)" --global-package-db "$(INSTALLED_PACKAGE_CONF)" recache
# -----------------------------------------------------------------------------
# Binary distributions