> Shouldn't need an environment variable. Xcodebuild is directed to use the 
> system's llvm-gcc

I had tried already without ccache (and a clean build directory). What
I hadn't tried though was not defining CXX and CC variables to LLVM.

Surprisingly, I am able to compile the viewer now despite the
deceptive message that autobuild is now using Clang. The confusing
thing is that I can point the CXX and CC variables to the exact same
compilers xcode is using and still get the exact same failure.

This sort of behaviour leaves me a little miffed. Being that I would
really like to use ccache in my work, would you happen to know of a
way to tell xcode to use ccache + llvm in Second life's compilation
process?

> (just won't work on Xcode5, which you aren't using anyway, because Apple 
> symlinked "llvm-gcc" to clang. -_-)

So, one could get xcode5 working by just changing the symlink to the
right compiler?

Thanks,
   Ash

On Fri, Oct 4, 2013 at 3:55 PM, Cinder Biscuits
<cinder.rox...@phoenixviewer.com> wrote:
> On 4 Oct 2013, at 8:32, Ash Qin wrote:
>
>>> Did you install Command Line Tools with Xcode and CMake?
>>
>> Yes.
>>
>>> (from your logs)
>>> -- The C compiler identification is unknown
>>> -- The CXX compiler identification is unknown
>>
>> That's only because I defined the CC and CXX environment variables to
>> use LLVM-GCC through ccache using:
>>
>> export CXX=/usr/local/opt/ccache/libexec/llvm-g++-4.2
>> export CC=/usr/local/opt/ccache/libexec/llvm-gcc-4.2
>>
>> This is because I am aware that viewer-release will not build under
>> Clang. If you look in the build log, it uses those compilers fine.
>> Also, no difference when not using ccache.
>
> Shouldn't need an environment variable. Xcodebuild is directed to use
> the system's llvm-gcc
> in Variables.cmake (just won't work on Xcode5, which you aren't using
> anyway, because Apple
> symlinked "llvm-gcc" to clang. -_-)
>
> Seems to me that CMake is confused as to where the C compiler is. You've
> probably already tried
> this, but nuke build-darwin-i386 and try again without ccache.
> Something's likely stale.
>
> --
> Cinder
> _______________________________________________
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/OpenSource-Dev
> Please read the policies before posting to keep unmoderated posting privileges
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to