{"action":"closed","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/4425","repository_url":"https://api.github.com/repos/mesonbuild/meson","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/4425/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/4425/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/4425/events","html_url":"https://github.com/mesonbuild/meson/issues/4425","id":374361821,"node_id":"MDU6SXNzdWUzNzQzNjE4MjE=","number":4425,"title":"incorrect precompiled header path in msvc","user":{"login":"etermaw","id":27742616,"node_id":"MDQ6VXNlcjI3NzQyNjE2","avatar_url":"https://avatars3.githubusercontent.com/u/27742616?v=4","gravatar_id":"","url":"https://api.github.com/users/etermaw","html_url":"https://github.com/etermaw","followers_url":"https://api.github.com/users/etermaw/followers","following_url":"https://api.github.com/users/etermaw/following{/other_user}","gists_url":"https://api.github.com/users/etermaw/gists{/gist_id}","starred_url":"https://api.github.com/users/etermaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etermaw/subscriptions","organizations_url":"https://api.github.com/users/etermaw/orgs","repos_url":"https://api.github.com/users/etermaw/repos","events_url":"https://api.github.com/users/etermaw/events{/privacy}","received_events_url":"https://api.github.com/users/etermaw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T12:28:49Z","updated_at":"2018-10-26T14:18:13Z","closed_at":"2018-10-26T14:18:13Z","author_association":"NONE","body":"Meson (0.47.2) incorrectly generates paths for pch files, when using any msvc backend.\r\nReproducing:\r\n\r\nproject structure:\r\n\r\n* project dir\r\n    * meson.build\r\n    * a\r\n        * main.cpp\r\n        * pch\r\n            * stdafx.h\r\n            * stdafx.cpp\r\n\r\nmeson.build:\r\n```\r\nproject('pch_bug', 'cpp', version: '1.0')\r\nprog = executable('pch_bug', sources: 'a/main.cpp', cpp_pch: ['a/pch/stdafx.h', 'a/pch/stdafx.cpp'])\r\n```\r\n\r\nmain.cpp:\r\n```\r\nint main()\r\n{\r\n\tstd::cout << \"hello!\";\r\n\treturn 0;\r\n}\r\n```\r\n\r\nstdafx.h:\r\n```\r\n#include <iostreams>\r\n```\r\n\r\nstdafx.cpp:\r\n```\r\n#include \"stdafx.h\"\r\n```\r\nProblem:\r\n* whole project precompiled header path will be \"..\\a/pch/stdafx.h\" instead of \"pch/stdafx.h\"\r\n* forced include path will be \"..\\a/pch/stdafx.h\" instead of \"pch/stdafx.h\"\r\n* in pch.cpp properties, precompiled header path will be \"stdafx.h\" instead of \"pch/stdafx.h\"\r\n\r\nAfter applying those changes, project compiles\r\n\r\n\r\n"}}
{"actor":{"display_login":"etermaw"}}