[project @ 2004-09-16 01:39:24 by mthomas]
authormthomas <unknown>
Thu, 16 Sep 2004 01:39:24 +0000 (01:39 +0000)
committermthomas <unknown>
Thu, 16 Sep 2004 01:39:24 +0000 (01:39 +0000)
On Windows default to main.exe instead of a.out.

ghc/compiler/main/DriverPipeline.hs

index 0673abb..0116aee 100644 (file)
@@ -994,7 +994,11 @@ staticLink o_files dep_packages = do
     -- dependencies, and eliminating duplicates.
 
     o_file <- readIORef v_Output_file
+#if defined(mingw32_HOST_OS)
+    let output_fn = case o_file of { Just s -> s; Nothing -> "main.exe"; }
+#else
     let output_fn = case o_file of { Just s -> s; Nothing -> "a.out"; }
+#endif
 
     pkg_lib_paths <- getPackageLibraryPath dep_packages
     let pkg_lib_path_opts = map ("-L"++) pkg_lib_paths