{"action":"closed","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/464","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/464/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/464/events","html_url":"https://github.com/bazelbuild/bazel/issues/464","id":107307604,"number":464,"title":"Question: Cross-compilation","user":{"login":"wjk","id":1915951,"avatar_url":"https://avatars.githubusercontent.com/u/1915951?v=3","gravatar_id":"","url":"https://api.github.com/users/wjk","html_url":"https://github.com/wjk","followers_url":"https://api.github.com/users/wjk/followers","following_url":"https://api.github.com/users/wjk/following{/other_user}","gists_url":"https://api.github.com/users/wjk/gists{/gist_id}","starred_url":"https://api.github.com/users/wjk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjk/subscriptions","organizations_url":"https://api.github.com/users/wjk/orgs","repos_url":"https://api.github.com/users/wjk/repos","events_url":"https://api.github.com/users/wjk/events{/privacy}","received_events_url":"https://api.github.com/users/wjk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-19T03:30:00Z","updated_at":"2015-11-17T10:49:12Z","closed_at":"2015-11-17T10:49:12Z","body":"I am currently working on a rewrite of my [Andromeda](https://github.com/Andromeda-OS) operating system in a private repository. I am trying to set up a Bazel build for this project. This project requires that it be compiled with a cross-compiler. However, in the spirit of Bazel (and to avoid compiler-versioning issues that have broke my build in the past), I am including the sources for the compiler in the Bazel tree. Hence, I must build the cross-compiler (and a few other miscellaneous tools) using the _host_ compiler, while I build the rest of the project with the _cross_ compiler. I am fairly certain on how to build the whole tree using one compiler or another (although the docs are somewhat ambiguous on this issue), but am uncertain how to build part of my project host and part cross. What is the best way to do this?"}}