Skip to content

Instantly share code, notes, and snippets.

@janhieber
Created August 23, 2017 11:26
Show Gist options
  • Save janhieber/6fa095a3720dc9167703a19a76bd5140 to your computer and use it in GitHub Desktop.
Save janhieber/6fa095a3720dc9167703a19a76bd5140 to your computer and use it in GitHub Desktop.
How to cross compile with ccache
mkdir /usr/local/bin/ccache
ln -s /usr/bin/ccache /usr/local/bin/ccache/arm-none-eabi-gcc
ln -s /usr/bin/ccache /usr/local/bin/ccache/arm-none-eabi-g++
ln -s /usr/bin/ccache /usr/local/bin/ccache/arm-none-eabi-cpp
ln -s /usr/bin/ccache /usr/local/bin/ccache/arm-none-eabi-c++
export PATH="/usr/local/bin/ccache:$PATH"
# now cross compile as usuas, eg wih
# CROSS_COMPILE=arm-none-eabi-
# the system will pick up the ccache linked gcc first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment