#850: Configure fails when an Objective-C .h file is specified ----------------------------+----------------------------------------------- Reporter: dankna | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: HEAD Severity: normal | Keywords: configure mac objective-c Difficulty: unknown | Ghcversion: Platform: | ----------------------------+-----------------------------------------------
Comment(by dankna): It occurs to me trying to solve this that it's actually a hard problem. Passing the -x <language> flag to gcc is the easy part, but in the general case the header file could be C, ObjC, C++, or even ObjC++. There's no way for Cabal to infer which it is, since it has the same extension, .h, in all four cases. I see two approaches. One would be to have the package author pass the information in the .cabal file somehow. The drawback is that it's not really clear what a good interface would be. The other would be to try to autodetect it after all somehow, perhaps by getting gcc to spit out dependency information to see what source files (which /can/ have their languages inferred by their filenames) includes what header files. -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/850#comment:1> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel