diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2019-09-25 17:09:17 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2019-09-29 02:49:05 +0200 |
commit | ca9f53e4133f185f353a6d9e13257cddfd621ec2 (patch) | |
tree | 213937725f5803d07c603b8706acb7063f5a8127 /os | |
parent | 7ddd09a4862c98dd7115e78d762511dbe1d26e68 (diff) |
Add support for symlink farming as a workaround for Stack
We want to be able to have the build tool use exactly the compiler and
related executables we choose. Stack doesn't really like that mode of
operation and insists on getting everything from PATH itself so this commit
adds support for creating a temporary symlink farm to convince Stack to use
the executables we want it to use.
Diffstat (limited to 'os')
-rw-r--r-- | os/posix/Symlink.hs | 2 | ||||
-rw-r--r-- | os/win/Symlink.hs | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/os/posix/Symlink.hs b/os/posix/Symlink.hs new file mode 100644 index 0000000..6d97072 --- /dev/null +++ b/os/posix/Symlink.hs @@ -0,0 +1,2 @@ +module Symlink (createSymbolicLink) where +import System.Posix.Files (createSymbolicLink) diff --git a/os/win/Symlink.hs b/os/win/Symlink.hs new file mode 100644 index 0000000..335f1c4 --- /dev/null +++ b/os/win/Symlink.hs @@ -0,0 +1,3 @@ +module Symlink (createSymbolicLink) where +import System.Win32.SymbolicLink (createSymbolicLinkFile) +createSymbolicLink = createSymbolicLinkFile |