{"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/comments/10366158","html_url":"https://github.com/NixOS/nixpkgs/commit/f91dea4c0be410c52d8131d6a1237f04b1b8da71#commitcomment-10366158","id":10366158,"user":{"login":"shlevy","id":487050,"avatar_url":"https://avatars.githubusercontent.com/u/487050?v=3","gravatar_id":"","url":"https://api.github.com/users/shlevy","html_url":"https://github.com/shlevy","followers_url":"https://api.github.com/users/shlevy/followers","following_url":"https://api.github.com/users/shlevy/following{/other_user}","gists_url":"https://api.github.com/users/shlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/shlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlevy/subscriptions","organizations_url":"https://api.github.com/users/shlevy/orgs","repos_url":"https://api.github.com/users/shlevy/repos","events_url":"https://api.github.com/users/shlevy/events{/privacy}","received_events_url":"https://api.github.com/users/shlevy/received_events","type":"User","site_admin":false},"position":6,"line":174,"path":"pkgs/build-support/cc-wrapper/default.nix","commit_id":"f91dea4c0be410c52d8131d6a1237f04b1b8da71","created_at":"2015-03-24T12:56:17Z","updated_at":"2015-03-24T12:56:17Z","body":"@gridaphobe `clang` does have a `gcc` attribute: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/llvm/3.6/clang/default.nix#L44. On Linux, clang *requires* gcc for core C runtime bits, even when using libc++ and compiler-rt. Thus each Linux clang has an associated gcc, and we can use that to default to libstdc++ like I'm doing here."}}