{"action":"created","issue":{"url":"https://api.github.com/repos/fastbuild/fastbuild/issues/174","repository_url":"https://api.github.com/repos/fastbuild/fastbuild","labels_url":"https://api.github.com/repos/fastbuild/fastbuild/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/fastbuild/fastbuild/issues/174/comments","events_url":"https://api.github.com/repos/fastbuild/fastbuild/issues/174/events","html_url":"https://github.com/fastbuild/fastbuild/issues/174","id":192900665,"number":174,"title":"Build takes significantly longer with -cache","user":{"login":"haferburg","id":4941909,"avatar_url":"https://avatars.githubusercontent.com/u/4941909?v=3","gravatar_id":"","url":"https://api.github.com/users/haferburg","html_url":"https://github.com/haferburg","followers_url":"https://api.github.com/users/haferburg/followers","following_url":"https://api.github.com/users/haferburg/following{/other_user}","gists_url":"https://api.github.com/users/haferburg/gists{/gist_id}","starred_url":"https://api.github.com/users/haferburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haferburg/subscriptions","organizations_url":"https://api.github.com/users/haferburg/orgs","repos_url":"https://api.github.com/users/haferburg/repos","events_url":"https://api.github.com/users/haferburg/events{/privacy}","received_events_url":"https://api.github.com/users/haferburg/received_events","type":"User","site_admin":false},"labels":[{"id":190299607,"url":"https://api.github.com/repos/fastbuild/fastbuild/labels/Question","name":"Question","color":"159818","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-01T16:48:25Z","updated_at":"2016-12-21T09:40:11Z","closed_at":null,"body":"Delete everything in build dir, then `fbuild` -> 5.148s\r\n\r\nDelete everything in build dir, then `fbuild -cache` -> 17.751s\r\n\r\nI then do `fbuild -clean -cache`, FBuild says `<CACHE>` after all the TUs -> 13.111s\r\n\r\nTouch the PCH, then `fbuild -cache` -> 13.718s\r\n\r\nSo it always takes at least twice as long with `-cache`.\r\n\r\nThis is on Windows with VS 2010 x86_amd64. I'm building with /Z7, as the docs state. The cache dir is on the same physical drive (SSD) as the build directory.\r\n\r\nWhen I build with /Zi, the hit from -cache is much more reasonable. Why is /Z7 necessary?\r\n\r\nPlease let me know what I can do to help debug this, and what information you need from me."},"comment":{"url":"https://api.github.com/repos/fastbuild/fastbuild/issues/comments/268478666","html_url":"https://github.com/fastbuild/fastbuild/issues/174#issuecomment-268478666","issue_url":"https://api.github.com/repos/fastbuild/fastbuild/issues/174","id":268478666,"user":{"login":"dummyunit","id":2660083,"avatar_url":"https://avatars.githubusercontent.com/u/2660083?v=3","gravatar_id":"","url":"https://api.github.com/users/dummyunit","html_url":"https://github.com/dummyunit","followers_url":"https://api.github.com/users/dummyunit/followers","following_url":"https://api.github.com/users/dummyunit/following{/other_user}","gists_url":"https://api.github.com/users/dummyunit/gists{/gist_id}","starred_url":"https://api.github.com/users/dummyunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dummyunit/subscriptions","organizations_url":"https://api.github.com/users/dummyunit/orgs","repos_url":"https://api.github.com/users/dummyunit/repos","events_url":"https://api.github.com/users/dummyunit/events{/privacy}","received_events_url":"https://api.github.com/users/dummyunit/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T09:40:11Z","updated_at":"2016-12-21T09:40:11Z","body":"> FASTBuild can use the pre-processor from one version while still using the compiler of another.\r\n\r\nI would strongly recommend against doing that. Different version of the compiler will have different set of predefined macros (at least `_MSC_VER` and `_MSC_FULL_VER`). This, for example, will break checks for compiler features found in many libraries."}}
{"actor":{"display_login":"dummyunit"}}