From 604dc199b6289171a7d5a258b18be5202595489b Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 1 May 2001 09:26:10 +0000 Subject: [PATCH] [project @ 2001-05-01 09:26:10 by simonmar] Don't include the win32 and com packages unless we're building for Windows. --- ghc/driver/PackageSrc.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 1.7.10.4