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.
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 ofclang
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.