{"action":"created","issue":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/2273","labels_url":"https://api.github.com/repos/chapel-lang/chapel/issues/2273/labels{/name}","comments_url":"https://api.github.com/repos/chapel-lang/chapel/issues/2273/comments","events_url":"https://api.github.com/repos/chapel-lang/chapel/issues/2273/events","html_url":"https://github.com/chapel-lang/chapel/pull/2273","id":99550987,"number":2273,"title":"Add Makefile functionality to generate a file with all the Chapel environment variables","user":{"login":"sungeunchoi","id":4294511,"avatar_url":"https://avatars.githubusercontent.com/u/4294511?v=3","gravatar_id":"","url":"https://api.github.com/users/sungeunchoi","html_url":"https://github.com/sungeunchoi","followers_url":"https://api.github.com/users/sungeunchoi/followers","following_url":"https://api.github.com/users/sungeunchoi/following{/other_user}","gists_url":"https://api.github.com/users/sungeunchoi/gists{/gist_id}","starred_url":"https://api.github.com/users/sungeunchoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sungeunchoi/subscriptions","organizations_url":"https://api.github.com/users/sungeunchoi/orgs","repos_url":"https://api.github.com/users/sungeunchoi/repos","events_url":"https://api.github.com/users/sungeunchoi/events{/privacy}","received_events_url":"https://api.github.com/users/sungeunchoi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-07T00:25:15Z","updated_at":"2015-08-11T23:11:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chapel-lang/chapel/pulls/2273","html_url":"https://github.com/chapel-lang/chapel/pull/2273","diff_url":"https://github.com/chapel-lang/chapel/pull/2273.diff","patch_url":"https://github.com/chapel-lang/chapel/pull/2273.patch"},"body":"Generate a header file with #defines representing the Chapel environment variables printed out by the --simple option to printchplenv.  Since the primary use of these is for conditional compilation, they cannot be defined to be strings or non-integer values.  Consequently, the name of the generated #define is the\r\nenvironment variable name concatenated with '_' and the value in upper case, e.g., CHPL_COMM_SUBSTRATE_UDP, and they have no value.\r\n\r\nThe header file, named chpl-env-gen.h, is placed in the runtime gen directory.  The path to the header is added to RUNTIME_INCL and runtime code can include the file directly.\r\n\r\nThere is currently at least one need for such functionality in the marenostrum launch, and it is anticipated that there will be more.\r\n\r\nAlso add a compile-only C test."},"comment":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/comments/130107030","html_url":"https://github.com/chapel-lang/chapel/pull/2273#issuecomment-130107030","issue_url":"https://api.github.com/repos/chapel-lang/chapel/issues/2273","id":130107030,"user":{"login":"sungeunchoi","id":4294511,"avatar_url":"https://avatars.githubusercontent.com/u/4294511?v=3","gravatar_id":"","url":"https://api.github.com/users/sungeunchoi","html_url":"https://github.com/sungeunchoi","followers_url":"https://api.github.com/users/sungeunchoi/followers","following_url":"https://api.github.com/users/sungeunchoi/following{/other_user}","gists_url":"https://api.github.com/users/sungeunchoi/gists{/gist_id}","starred_url":"https://api.github.com/users/sungeunchoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sungeunchoi/subscriptions","organizations_url":"https://api.github.com/users/sungeunchoi/orgs","repos_url":"https://api.github.com/users/sungeunchoi/repos","events_url":"https://api.github.com/users/sungeunchoi/events{/privacy}","received_events_url":"https://api.github.com/users/sungeunchoi/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T23:11:53Z","updated_at":"2015-08-11T23:11:53Z","body":"@ronawho Updated the precomp script."}}