Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.
This repository was archived by the owner on Aug 2, 2020. It is now read-only.

Custom build root does not work on Windows #666

@snowleopard

Description

@snowleopard

I've tried changing the build root on Windows like this:

$ ./build.stack.bat -j --flavour=quickest --integer-simple -c -o/d/test

and this:

$ ./build.stack.bat -j --flavour=quickest --integer-simple -c -oD:\test

But both fail with errors:

C:/msys/home/nam83/ghc/D:/test/stage0/utils/compare_sizes\: openBinaryTempFileWithDefaultPermissions: invalid argument (Invalid argument)

and

cp: cannot create directory ‘D:test/mingw’: No such file or directory

Clearly we are not handling paths correctly. I suspect we oversimplified our implementation of -/-:

https://github.com/snowleopard/hadrian/blob/master/src/Hadrian/Utilities.hs#L133-L140

There is already an issue about -/-: #434, but I'm not sure if it's necessarily a duplicate.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions