combineObjectFiles: Error if the linker does not support -r #33
Annotations
1 error and 1 warning
hlint
HLint failed with status: 1. Suggestion (1)
|
hlint:
Cabal/src/Distribution/Simple/Program/Builtin.hs#L375
Suggestion in ldProgram in module Distribution.Simple.Program.Builtin: Use guards ▫︎ Found: "v = if \"-relocatable\" `isInfixOf` ldHelpOutput then\n \"YES\"\n else\n if \"ld64:\" `isPrefixOf` ldHelpOutput then \"YES\" else \"NO\"" ▫︎ Perhaps: "v | \"-relocatable\" `isInfixOf` ldHelpOutput = \"YES\"\n | \"ld64:\" `isPrefixOf` ldHelpOutput = \"YES\"\n | otherwise = \"NO\""
|