git.iko.soy/typeable/entropy
on main help sign in
Check linking as well as compilation

Otherwise errors can be turned into warnings through implicitly defined functions, making the checks pass even when they shouldn't.

commitb611b4fe0f39dbaf14c1aa640ef305185a43b99d authorLance Roy <ldr709@gmail.com> dateFri 3 Jan 2020, 13:22 (7 years ago) parentf185fb7
1 file changed+1−1
Setup.hs+1−1
Setup.hs+1−1
@@ -28,7 +28,7 @@ compileCheck :: FilePath -> String -> String -> String -> IO Bool
2828compileCheck cc testName message sourceCode = do
2929 withTempDirectory normal "" testName $ \tmpDir -> do
3030 writeFile (tmpDir ++ "/" ++ testName ++ ".c") sourceCode
31− ec <- myRawSystemExitCode normal cc [tmpDir </> testName ++ ".c", "-o", tmpDir ++ "/a.o","-c"]
31+ ec <- myRawSystemExitCode normal cc [tmpDir </> testName ++ ".c", "-o", tmpDir ++ "/a","-no-hs-main"]
3232 notice normal $ message ++ show (ec == ExitSuccess)
3333 return (ec == ExitSuccess)
3434