From: simonmar Date: Tue, 1 May 2001 09:26:10 +0000 (+0000) Subject: [project @ 2001-05-01 09:26:10 by simonmar] X-Git-Tag: Approximately_9120_patches~2044 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=604dc199b6289171a7d5a258b18be5202595489b;p=ghc-hetmet.git [project @ 2001-05-01 09:26:10 by simonmar] Don't include the win32 and com packages unless we're building for Windows. --- diff --git a/ghc/driver/PackageSrc.hs b/ghc/driver/PackageSrc.hs index d46d529..2c8875b 100644 --- a/ghc/driver/PackageSrc.hs +++ b/ghc/driver/PackageSrc.hs @@ -352,9 +352,10 @@ package_details installing extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], - }, + } - Package { +#if defined(mingw32_TARGET_OS) || defined(cygwin32_TARGET_OS) + ,Package { name = "win32", import_dirs = if installing then [ clibdir ++ "/imports/win32" ] @@ -391,6 +392,7 @@ package_details installing extra_cc_opts = [], extra_ld_opts = [] } +#endif ] where ghc_src_dir :: String -> String