{"action":"created","issue":{"url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/75","repository_url":"https://api.github.com/repos/alexcrichton/gcc-rs","labels_url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/75/comments","events_url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/75/events","html_url":"https://github.com/alexcrichton/gcc-rs/issues/75","id":147920306,"number":75,"title":"support $CC, $CXX containing spaces","user":{"login":"sourcefrog","id":346355,"avatar_url":"https://avatars.githubusercontent.com/u/346355?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcefrog","html_url":"https://github.com/sourcefrog","followers_url":"https://api.github.com/users/sourcefrog/followers","following_url":"https://api.github.com/users/sourcefrog/following{/other_user}","gists_url":"https://api.github.com/users/sourcefrog/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcefrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcefrog/subscriptions","organizations_url":"https://api.github.com/users/sourcefrog/orgs","repos_url":"https://api.github.com/users/sourcefrog/repos","events_url":"https://api.github.com/users/sourcefrog/events{/privacy}","received_events_url":"https://api.github.com/users/sourcefrog/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-13T01:33:05Z","updated_at":"2016-04-16T15:28:57Z","closed_at":"2016-04-13T17:39:05Z","body":"(from https://github.com/rust-lang/rust/issues/32914)\r\n\r\nA setting of `CC='ccache gcc'` is accepted by most Linux build tools but causes trouble for Rust. When it builds an argv to execute the compiler it treats that whole string as the binary name.\r\n\r\nThis is apparently [intentional](https://github.com/alexcrichton/gcc-rs#external-configuration-via-environment-variables) but might not be optimal.\r\n\r\nProbably better is to either \r\n\r\n - split on spaces \r\n - or perhaps use some shell-like parser to break into words, which might allow for quoted spaces etc\r\n\r\n```\r\ncargo:rustc-link-lib=static=brotli-dec\r\ncargo:rustc-link-search=native=/home/mbp/src/conserve/target/debug/build/brotli-sys-c29cf30a86d86a13/out\r\nTARGET = Some(\"x86_64-unknown-linux-gnu\")\r\nOPT_LEVEL = Some(\"0\")\r\nPROFILE = Some(\"debug\")\r\nTARGET = Some(\"x86_64-unknown-linux-gnu\")\r\ndebug=true opt-level=0\r\nHOST = Some(\"x86_64-unknown-linux-gnu\")\r\nTARGET = Some(\"x86_64-unknown-linux-gnu\")\r\nTARGET = Some(\"x86_64-unknown-linux-gnu\")\r\nHOST = Some(\"x86_64-unknown-linux-gnu\")\r\nCXX_x86_64-unknown-linux-gnu = None\r\nCXX_x86_64_unknown_linux_gnu = None\r\nHOST_CXX = None\r\nCXX = Some(\"ccache c++\")\r\nTARGET = Some(\"x86_64-unknown-linux-gnu\")\r\nHOST = Some(\"x86_64-unknown-linux-gnu\")\r\nCXXFLAGS_x86_64-unknown-linux-gnu = None\r\nCXXFLAGS_x86_64_unknown_linux_gnu = None\r\nHOST_CXXFLAGS = None\r\nCXXFLAGS = None\r\nrunning: \"ccache c++\" \"-O0\" \"-ffunction-sections\" \"-fdata-sections\" \"-g\" \"-m64\" \"-fPIC\" \"-I\" \"brotli/enc\" \"-I\" \"src\" \"-o\" \"/home/\r\nmbp/src/conserve/target/debug/build/brotli-sys-c29cf30a86d86a13/out/src/brotli_capi.o\" \"-c\" \"src/brotli_capi.cc\"\r\n\r\nfailed to execute command: No such file or directory (os error 2)\r\nIs `ccache c++` not installed?\r\n```"},"comment":{"url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/comments/210840464","html_url":"https://github.com/alexcrichton/gcc-rs/issues/75#issuecomment-210840464","issue_url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/75","id":210840464,"user":{"login":"sourcefrog","id":346355,"avatar_url":"https://avatars.githubusercontent.com/u/346355?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcefrog","html_url":"https://github.com/sourcefrog","followers_url":"https://api.github.com/users/sourcefrog/followers","following_url":"https://api.github.com/users/sourcefrog/following{/other_user}","gists_url":"https://api.github.com/users/sourcefrog/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcefrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcefrog/subscriptions","organizations_url":"https://api.github.com/users/sourcefrog/orgs","repos_url":"https://api.github.com/users/sourcefrog/repos","events_url":"https://api.github.com/users/sourcefrog/events{/privacy}","received_events_url":"https://api.github.com/users/sourcefrog/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T15:28:57Z","updated_at":"2016-04-16T15:28:57Z","body":"c934cb3 fixes it for me, thanks."}}