summaryrefslogtreecommitdiff
path: root/compiler/main/SysTools.hs
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-11-19 18:46:01 -0500
committerBen Gamari <ben@smart-cactus.org>2017-11-19 18:46:01 -0500
commit7d16d8a20d5ba6ca38c0fdf5732e3edaa6b14827 (patch)
treeac923f03c6e41a2d96bac1f7fc2e8ae02bfeccc3 /compiler/main/SysTools.hs
parentb8e324a4ff7d04d55dc8d8d8b9e441225c9dd4f6 (diff)
downloadhaskell-7d16d8a20d5ba6ca38c0fdf5732e3edaa6b14827.tar.gz
Fix #elfi -> #elif; unbreak -Werror.
Reviewers: bgamari, erikd Reviewed By: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D4209
Diffstat (limited to 'compiler/main/SysTools.hs')
-rw-r--r--compiler/main/SysTools.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/main/SysTools.hs b/compiler/main/SysTools.hs
index 860b724692..da26f8ea55 100644
--- a/compiler/main/SysTools.hs
+++ b/compiler/main/SysTools.hs
@@ -48,7 +48,10 @@ import Platform
import Util
import DynFlags
+#if defined(darwin_HOST_OS) || defined(linux_HOST_OS)
import System.Environment (getExecutablePath)
+#endif
+
import System.FilePath
import System.IO
import System.Directory