[project @ 2001-05-01 09:26:10 by simonmar]
authorsimonmar <unknown>
Tue, 1 May 2001 09:26:10 +0000 (09:26 +0000)
committersimonmar <unknown>
Tue, 1 May 2001 09:26:10 +0000 (09:26 +0000)
Don't include the win32 and com packages unless we're building for Windows.

ghc/driver/PackageSrc.hs

index d46d529..2c8875b 100644 (file)
@@ -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