{"action":"created","issue":{"url":"https://api.github.com/repos/rebar/rebar/issues/436","labels_url":"https://api.github.com/repos/rebar/rebar/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar/issues/436/comments","events_url":"https://api.github.com/repos/rebar/rebar/issues/436/events","html_url":"https://github.com/rebar/rebar/issues/436","id":54715717,"number":436,"title":"cross compilation, again.","user":{"login":"tonyrog","id":152886,"avatar_url":"https://avatars.githubusercontent.com/u/152886?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyrog","html_url":"https://github.com/tonyrog","followers_url":"https://api.github.com/users/tonyrog/followers","following_url":"https://api.github.com/users/tonyrog/following{/other_user}","gists_url":"https://api.github.com/users/tonyrog/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyrog/subscriptions","organizations_url":"https://api.github.com/users/tonyrog/orgs","repos_url":"https://api.github.com/users/tonyrog/repos","events_url":"https://api.github.com/users/tonyrog/events{/privacy}","received_events_url":"https://api.github.com/users/tonyrog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-19T00:05:42Z","updated_at":"2015-01-20T13:41:27Z","closed_at":null,"body":"What about adding REBAR_ARCH (or similar) where you can alter the system architecture.\r\nI have tried something like:\r\n\r\nREBAR_ARCH=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc rebar compile\r\n\r\nIn this case I changed rebar_utils:get_arch to check for arm and return \"32\". I did also match x86_64, i386, i686 and so on. The fallback is REBAR_ARCH_WORDSIZE. This would also affects rebar_util:wordsize()\r\n\r\nI have tried it and it works ok. What about it?"},"comment":{"url":"https://api.github.com/repos/rebar/rebar/issues/comments/70654284","html_url":"https://github.com/rebar/rebar/issues/436#issuecomment-70654284","issue_url":"https://api.github.com/repos/rebar/rebar/issues/436","id":70654284,"user":{"login":"tuncer","id":4232,"avatar_url":"https://avatars.githubusercontent.com/u/4232?v=3","gravatar_id":"","url":"https://api.github.com/users/tuncer","html_url":"https://github.com/tuncer","followers_url":"https://api.github.com/users/tuncer/followers","following_url":"https://api.github.com/users/tuncer/following{/other_user}","gists_url":"https://api.github.com/users/tuncer/gists{/gist_id}","starred_url":"https://api.github.com/users/tuncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuncer/subscriptions","organizations_url":"https://api.github.com/users/tuncer/orgs","repos_url":"https://api.github.com/users/tuncer/repos","events_url":"https://api.github.com/users/tuncer/events{/privacy}","received_events_url":"https://api.github.com/users/tuncer/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T13:41:27Z","updated_at":"2015-01-20T13:41:27Z","body":"Great!"}}