Created
August 23, 2017 11:26
-
-
Save janhieber/6fa095a3720dc9167703a19a76bd5140 to your computer and use it in GitHub Desktop.
How to cross compile with ccache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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