
#14312: Head does not build on Windows with the default make config. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: Build System | Version: 8.3 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4080 Wiki Page: | -------------------------------------+------------------------------------- Comment (by hvr): Replying to [comment:11 Phyx-]:
Well, the proposal is more to not add the current file's folder implicitly to the include list.
Unfortunately, `capi` kinda follows the lead by the H2010 report:
**8.5.1 Standard C Calls**
...
**Specification of Header Files** A C header specified in an import declaration is always included by `#include "chname"`. There is no explicit support for `#include <chname>` style inclusion. The ISO C99 standard guarantees that any search path that would be used for a `#include <chname>` is also used for `#include "chname"` and it is guaranteed that these paths are searched after all paths that are unique to `#include "chname"`. Furthermore, we require that chname ends in .h to make parsing of the specification of external entities unambiguous.
So `capi` kinda adheres to that by using a `#include <chname>` and compensating via a `-I.` path included early. (see https://www.haskell.org/onlinereport/haskell2010/haskellch8.html#x15-1610008...) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14312#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler