{"action":"opened","issue":{"url":"https://api.github.com/repos/aldebaran/qibuild/issues/81","repository_url":"https://api.github.com/repos/aldebaran/qibuild","labels_url":"https://api.github.com/repos/aldebaran/qibuild/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/aldebaran/qibuild/issues/81/comments","events_url":"https://api.github.com/repos/aldebaran/qibuild/issues/81/events","html_url":"https://github.com/aldebaran/qibuild/issues/81","id":149988735,"number":81,"title":"the host config can *only* be set as global config","user":{"login":"sbarthelemy","id":98104,"avatar_url":"https://avatars.githubusercontent.com/u/98104?v=3","gravatar_id":"","url":"https://api.github.com/users/sbarthelemy","html_url":"https://github.com/sbarthelemy","followers_url":"https://api.github.com/users/sbarthelemy/followers","following_url":"https://api.github.com/users/sbarthelemy/following{/other_user}","gists_url":"https://api.github.com/users/sbarthelemy/gists{/gist_id}","starred_url":"https://api.github.com/users/sbarthelemy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbarthelemy/subscriptions","organizations_url":"https://api.github.com/users/sbarthelemy/orgs","repos_url":"https://api.github.com/users/sbarthelemy/repos","events_url":"https://api.github.com/users/sbarthelemy/events{/privacy}","received_events_url":"https://api.github.com/users/sbarthelemy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-21T07:18:13Z","updated_at":"2016-04-21T07:18:13Z","closed_at":null,"body":"The only way to set the host config is by marking a *single* config as `host=\"true\"` in ~/.qi/qibuild.xml.\r\n\r\nThis makes the option a global.\r\n\r\nImagine you want to cross-compile two branches (say master and release-2.0) each branch using its own version of the desktop and robot toolchain. You end up with 4 configs:\r\n\r\nlinux64-master\r\nlinux64-release2.6\r\natom-master\r\natom-release2.6\r\n\r\nbut you cannot build for atom-release2.6 and atom-master in parallel since they both require a different host config. (actually you cannot  build for linux64-master and linux64-release2.6 in parallel either for the same reason).\r\n\r\nhaving a global \"default host config\" is not bad per se, but there should be other ways to change that at a narrower scope. For instance\r\n\r\n* get the info from command-line option\r\n* get the info from an environment variable\r\n* let each config in ~/.qi/qibuild.xml set its own host config.\r\n\r\n\r\n"}}