Coder Social home page Coder Social logo

make it ccache friendly about osxcross HOT 4 CLOSED

tpoechtrager avatar tpoechtrager commented on July 22, 2024
make it ccache friendly

from osxcross.

Comments (4)

tpoechtrager avatar tpoechtrager commented on July 22, 2024

Yes, the wrapper is ignoring ccache symlinks while searching for the clang executable (to prevent breakage).

The proper way is to create x86_64-apple-darwin*-[clang|gcc] ccache symlinks,

e.g.:

cd /usr/lib64/ccache

ln -sf $(which ccache) x86_64-apple-darwin14-clang
ln -sf $(which ccache) x86_64-apple-darwin14-clang++
ln -sf $(which ccache) o32-clang
ln -sf $(which ccache) o32-clang++
ln -sf $(which ccache) o64-clang
ln -sf $(which ccache) o64-clang++
ln -sf $(which ccache) x86_64-apple-darwin14-gcc
ln -sf $(which ccache) x86_64-apple-darwin14-g++
[... and so on]

from osxcross.

pisto avatar pisto commented on July 22, 2024

I guess that can work.

from osxcross.

pisto avatar pisto commented on July 22, 2024

No it doesn't work, I get the following warnings if I append the osxcross path and create the appropriate ccache symlinks:

clang: warning: argument unused during compilation: '-isystem /usr/bin/../lib/clang/3.5.0/include'
clang: warning: argument unused during compilation: '-cxx-isystem /home/pisto/sorgenti/osxcross/target/bin/../SDK/MacOSX10.10.sdk/usr/i

and a bunch of

warning: equality comparison with extraneous parentheses [-Wparentheses-equality]

cp. http://peter.eisentraut.org/blog/2014/12/01/ccache-and-clang-part-3/

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 22, 2024

It does work, that warnings are not an OSXCross issue, you get them for other targets too.

from osxcross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.