{"action":"created","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/489","repository_url":"https://api.github.com/repos/mesonbuild/meson","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/489/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/489/events","html_url":"https://github.com/mesonbuild/meson/issues/489","id":144591328,"number":489,"title":"Support \\ (backslash) in compiler arguments added by build files","user":{"login":"nirbheek","id":75801,"avatar_url":"https://avatars.githubusercontent.com/u/75801?v=3","gravatar_id":"","url":"https://api.github.com/users/nirbheek","html_url":"https://github.com/nirbheek","followers_url":"https://api.github.com/users/nirbheek/followers","following_url":"https://api.github.com/users/nirbheek/following{/other_user}","gists_url":"https://api.github.com/users/nirbheek/gists{/gist_id}","starred_url":"https://api.github.com/users/nirbheek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirbheek/subscriptions","organizations_url":"https://api.github.com/users/nirbheek/orgs","repos_url":"https://api.github.com/users/nirbheek/repos","events_url":"https://api.github.com/users/nirbheek/events{/privacy}","received_events_url":"https://api.github.com/users/nirbheek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-30T13:20:23Z","updated_at":"2016-04-15T00:44:00Z","closed_at":null,"body":"Since Meson has the requirement that compiler arguments passed manually via build files cannot contain `\\`, this means it is impossible to pass `cargs` to functions inside build paths that contain paths on Windows because Python by default (`os.path`) uses `\\\\` as the path separator.\r\n\r\nHowever, MSVC (and most Windows utilities) accept `/` as the path separator, so things like `meson.current_source_dir()` and so on should return paths separated by `/` instead of `\\\\` so that those can be passed as `cargs`.\r\n\r\nIf there is agreement on this, I'll submit patches that use `pathlib.PurePath.as_posix()` to convert Windows paths to POSIX paths before returning them."},"comment":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/comments/210225874","html_url":"https://github.com/mesonbuild/meson/issues/489#issuecomment-210225874","issue_url":"https://api.github.com/repos/mesonbuild/meson/issues/489","id":210225874,"user":{"login":"nirbheek","id":75801,"avatar_url":"https://avatars.githubusercontent.com/u/75801?v=3","gravatar_id":"","url":"https://api.github.com/users/nirbheek","html_url":"https://github.com/nirbheek","followers_url":"https://api.github.com/users/nirbheek/followers","following_url":"https://api.github.com/users/nirbheek/following{/other_user}","gists_url":"https://api.github.com/users/nirbheek/gists{/gist_id}","starred_url":"https://api.github.com/users/nirbheek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirbheek/subscriptions","organizations_url":"https://api.github.com/users/nirbheek/orgs","repos_url":"https://api.github.com/users/nirbheek/repos","events_url":"https://api.github.com/users/nirbheek/events{/privacy}","received_events_url":"https://api.github.com/users/nirbheek/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T00:44:00Z","updated_at":"2016-04-15T00:44:00Z","body":"Are you looking into this already or should I try my hand at it? :)"}}