Hadrian: Make makeRelativeNoSysLink total

Authored by mpickering on Mar 10 2019, 12:36 PM.

Description

Hadrian: Make makeRelativeNoSysLink total

makeRelativeNoSysLink would previously crash for no reason if the first
argument as ./ due to the call to head. This refactoring keeps the
behaviour the same but doesn't crash in this corner case.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Mar 12 2019, 8:04 AM
Parents
rGHC61264556d5c8: Hadrian: Make libsuf and distDir stage aware
Branches
Unknown
Tags
Unknown
Marge Bot <ben+marge-bot@smart-cactus.org> committed rGHC705fa21d674a: Hadrian: Make makeRelativeNoSysLink total (authored by mpickering).Mar 12 2019, 8:04 AM