summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-04-19 15:07:57 -0400
committerBen Gamari <ben@smart-cactus.org>2018-04-19 18:06:15 -0400
commit8fa688a84f4e4d86096710edd1f0d19bac3eea90 (patch)
treeebc9f91cce2f50c61fcff5e04881f28e0c6d42c5 /boot
parentcbd73bbbb7df080d5204098aa02e5f5d0d48823c (diff)
downloadhaskell-8fa688a84f4e4d86096710edd1f0d19bac3eea90.tar.gz
boot: Fix computation of TOP
Test Plan: Run `./boot`, check to make sure that `libraries/ghc-prim/GNUmakefile` is sane Subscribers: thomie, carter, sjakobi Differential Revision: https://phabricator.haskell.org/D4580
Diffstat (limited to 'boot')
-rwxr-xr-xboot2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot b/boot
index f91372464d..d57dcc846b 100755
--- a/boot
+++ b/boot
@@ -116,7 +116,7 @@ def boot_pkgs():
if os.path.isfile(cabal):
# strip both .cabal and .in
pkg = os.path.splitext(os.path.splitext(os.path.basename(cabal))[0])[0]
- top = package
+ top = os.path.join(*['..'] * len(os.path.normpath(package).split(os.path.sep)))
ghc_mk = os.path.join(package, 'ghc.mk')
print('Creating %s' % ghc_mk)