{"action":"created","issue":{"url":"https://api.github.com/repos/KyleMayes/clang-sys/issues/78","repository_url":"https://api.github.com/repos/KyleMayes/clang-sys","labels_url":"https://api.github.com/repos/KyleMayes/clang-sys/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/KyleMayes/clang-sys/issues/78/comments","events_url":"https://api.github.com/repos/KyleMayes/clang-sys/issues/78/events","html_url":"https://github.com/KyleMayes/clang-sys/issues/78","id":356070329,"node_id":"MDU6SXNzdWUzNTYwNzAzMjk=","number":78,"title":"Allow for non-standard clang install paths on macOS","user":{"login":"aaronsky","id":10502938,"node_id":"MDQ6VXNlcjEwNTAyOTM4","avatar_url":"https://avatars2.githubusercontent.com/u/10502938?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronsky","html_url":"https://github.com/aaronsky","followers_url":"https://api.github.com/users/aaronsky/followers","following_url":"https://api.github.com/users/aaronsky/following{/other_user}","gists_url":"https://api.github.com/users/aaronsky/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronsky/subscriptions","organizations_url":"https://api.github.com/users/aaronsky/orgs","repos_url":"https://api.github.com/users/aaronsky/repos","events_url":"https://api.github.com/users/aaronsky/events{/privacy}","received_events_url":"https://api.github.com/users/aaronsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-31T17:48:33Z","updated_at":"2018-08-31T19:54:04Z","closed_at":null,"author_association":"NONE","body":"I just ran into an issue with coreaudio-sys by way of rust-bindgen by way of clang-sys where it was not able to find the path to my libclang.dylib. \r\n\r\nI managed to pin it down to [this](https://github.com/KyleMayes/clang-sys/blob/master/build.rs#L266) line, where the shared library search path points to a typical Xcode installation location. However, I'm a Cocoa dev who bounces around between Xcode versions a lot and have to maintain a folder structure for managing different Xcode versions in different locations. This path being hardcoded, alongside the fact that I can't get RLS to account for environment variables and I don't have my own version of LLVM installed, has left me with limited options here.\r\n\r\nInstead of hardcoding this path, can we change this behavior to do a search based on the return from `xcode-select -p`? I see that we're already checking for some output from xcodebuild to find the clang executable, so it wouldn't be antithetical to the design of the rest of the crate."},"comment":{"url":"https://api.github.com/repos/KyleMayes/clang-sys/issues/comments/417772776","html_url":"https://github.com/KyleMayes/clang-sys/issues/78#issuecomment-417772776","issue_url":"https://api.github.com/repos/KyleMayes/clang-sys/issues/78","id":417772776,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzc3Mjc3Ng==","user":{"login":"aaronsky","id":10502938,"node_id":"MDQ6VXNlcjEwNTAyOTM4","avatar_url":"https://avatars2.githubusercontent.com/u/10502938?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronsky","html_url":"https://github.com/aaronsky","followers_url":"https://api.github.com/users/aaronsky/followers","following_url":"https://api.github.com/users/aaronsky/following{/other_user}","gists_url":"https://api.github.com/users/aaronsky/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronsky/subscriptions","organizations_url":"https://api.github.com/users/aaronsky/orgs","repos_url":"https://api.github.com/users/aaronsky/repos","events_url":"https://api.github.com/users/aaronsky/events{/privacy}","received_events_url":"https://api.github.com/users/aaronsky/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T19:54:04Z","updated_at":"2018-08-31T19:54:04Z","author_association":"NONE","body":"This particular pattern is my own thing, since I usually have several versions of Xcode installed. Some folks just have an Xcode.app and an Xcode-beta.app in `/Applications`, some put it in `~/Applications`, and a number of others use the conventions set by the [xcode_install](https://github.com/KrauseFx/xcode-install) gem. In all those cases, `xcode-select` should be sufficient to get the active Xcode path.\r\n\r\nThanks for the fast reply!"}}
{"actor":{"display_login":"aaronsky"}}