File tree 1 file changed +0
-4
lines changed
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -151,16 +151,12 @@ boost::filesystem::path clang_path(boost::filesystem::path xcode_path) {
151
151
152
152
boost::filesystem::path get_xcode_path () {
153
153
// This routine gets us to the "/path/to/Xcode.app/Contents/Developer" folder
154
- #if 0
155
- return exec("xcode-select -p");
156
- #else
157
154
std::string clang_details = exec (" clang++ --version" );
158
155
// This assumes "InstalledDir:" is the last flag in the lineup.
159
156
const std::string needle (" InstalledDir: " );
160
157
auto installed_dir_pos = clang_details.find (needle);
161
158
boost::filesystem::path result = clang_details.substr (installed_dir_pos + needle.size (), std::string::npos);
162
159
return canonical (result / " .." / " .." / " .." / " .." );
163
- #endif
164
160
}
165
161
166
162
/* *************************************************************************************************/
You can’t perform that action at this time.
0 commit comments