#5025: GHC should support -x objective-c
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: new
Priority: high | Milestone: 7.2.1
Component: Compiler | Version: 7.0.2
Keywords: objective-c | Testcase:
Blockedby: | Difficulty: Easy (less than 1 hour)
Os: MacOS X | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by duncan):
Yes, Cabal should call gcc directly to compile .c files (and the
appropriate compilers for other languages). Cabal knows enough to know
what flags to pass (e.g. things inherited from package dependencies), it
does not need to delegate this to ghc.
BTW, just because the ticket is 3 years old does not mean it is hard ;-).
Independent of whether we make Cabal do the right thing, there is a
separate argument:
* One view is that people using ghc and other compilers from the command
line or makefiles ''should'' be using different compilers for different
source languages because that's "the right thing to do".
* allbery_b makes the claim that due to the way make works, and the
builtin make rules, that it is more convenient in makefiles to have one
compiler for multiple source languages than to "do the right thing" and
get your makefiles to use the right compiler for the right language.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5025#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs