tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.8k stars 318 forks source link

Request: Set osxcross-specific compiler path #423

Open mid-kid opened 2 weeks ago

mid-kid commented 2 weeks ago

Hi, I'm trying to use the apple-clang compiler with osxcross, but I want to avoid overriding my system's clang. For building osxcross, I built the apple-clang compiler in a new directory and added it to PATH, and built osxcross with that.

Problem is, now when I run x86_64-apple-darwin23-clang --version, it seems that osxcross is picking the system version of clang anyway. Is there any way to prevent this, and tell osxcross where to find the compiler? If not, I'd like for there to be a way.