Don't include the win32 and com packages unless we're building for Windows.
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" ]
extra_cc_opts = [],
extra_ld_opts = []
}
+#endif
]
where
ghc_src_dir :: String -> String