{"action":"created","issue":{"url":"https://api.github.com/repos/snowleopard/hadrian/issues/285","repository_url":"https://api.github.com/repos/snowleopard/hadrian","labels_url":"https://api.github.com/repos/snowleopard/hadrian/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/snowleopard/hadrian/issues/285/comments","events_url":"https://api.github.com/repos/snowleopard/hadrian/issues/285/events","html_url":"https://github.com/snowleopard/hadrian/issues/285","id":172321783,"number":285,"title":"Automate `need`ing of generated files","user":{"login":"michalt","id":119711,"avatar_url":"https://avatars.githubusercontent.com/u/119711?v=3","gravatar_id":"","url":"https://api.github.com/users/michalt","html_url":"https://github.com/michalt","followers_url":"https://api.github.com/users/michalt/followers","following_url":"https://api.github.com/users/michalt/following{/other_user}","gists_url":"https://api.github.com/users/michalt/gists{/gist_id}","starred_url":"https://api.github.com/users/michalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalt/subscriptions","organizations_url":"https://api.github.com/users/michalt/orgs","repos_url":"https://api.github.com/users/michalt/repos","events_url":"https://api.github.com/users/michalt/events{/privacy}","received_events_url":"https://api.github.com/users/michalt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-21T13:46:05Z","updated_at":"2016-08-21T16:32:56Z","closed_at":null,"body":"We have a bunch of files that are generated and then included through CPP (both `.c` and `.hs` files). With #279 we have basic support for discovering them automatically (through GCC's `-MM -MG` flags). This only works for `.c` files for now.\r\nIdeally `need`ing them would be fully automatic (i.e., the build system would discover when it actually needs them). I'm opening the ticket to have a central place for discussions/ideas about this."},"comment":{"url":"https://api.github.com/repos/snowleopard/hadrian/issues/comments/241267400","html_url":"https://github.com/snowleopard/hadrian/issues/285#issuecomment-241267400","issue_url":"https://api.github.com/repos/snowleopard/hadrian/issues/285","id":241267400,"user":{"login":"snowleopard","id":675286,"avatar_url":"https://avatars.githubusercontent.com/u/675286?v=3","gravatar_id":"","url":"https://api.github.com/users/snowleopard","html_url":"https://github.com/snowleopard","followers_url":"https://api.github.com/users/snowleopard/followers","following_url":"https://api.github.com/users/snowleopard/following{/other_user}","gists_url":"https://api.github.com/users/snowleopard/gists{/gist_id}","starred_url":"https://api.github.com/users/snowleopard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowleopard/subscriptions","organizations_url":"https://api.github.com/users/snowleopard/orgs","repos_url":"https://api.github.com/users/snowleopard/repos","events_url":"https://api.github.com/users/snowleopard/events{/privacy}","received_events_url":"https://api.github.com/users/snowleopard/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T16:32:56Z","updated_at":"2016-08-21T16:32:56Z","body":"@michalt Note, `MIN_VERSION_GLASGOW_HASKELL` is also set by Hadrian in `Rules.Generators.GhcVersionH`, so one option is to include the generated `includes/ghcversion.h` in addition to the Cabal macros headers.\r\n\r\nRegarding `#` in Haskell code, I agree it looks like we can workaround this -- perhaps, just fix the file in question in GHC?\r\n\r\nNot sure what's the best solution for `GLOBAL_VAR` macros in `HsVersions.h`. Can the definitions be rewritten to make GCC happy?"}}
{"actor":{"display_login":"snowleopard"}}