vicoapp / vico

Mac Programmers Text Editor
http://www.vicoapp.com/
657 stars 89 forks source link

Use xcrun for CC and CXX in Makefile. #8

Closed Shadowfiend closed 12 years ago

Shadowfiend commented 12 years ago

This switches CC and CXX to use "xcrun clang" and "xcrun clang++" to deal with the fact that newer XCodes don't install system tools in root paths by default. The above commands will correctly look in the path set by xcode-select for the appropriate tools.

Shadowfiend commented 12 years ago

(I've successfully built vico with this change, for reference.)

martinh commented 12 years ago

we should probably do the same for ibtool, no?

martinh commented 12 years ago

...and what about the SDK path? It's also dependent on the XCODEROOT variable (which is xcode-select -print-path)

Shadowfiend commented 12 years ago

I'll definitely apply the change to ibtool. What's your worry about the SDK path? It seems like it's already depending on xcode-select, and the result of xcrun is determined by the same thing, so it should be all right, I think?

martinh commented 12 years ago

ah, ok then, thanks

Shadowfiend commented 12 years ago

My pleasure :)