From 52258d99a532df8eff24602b2b08a6251e4fc4f0 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 2 Feb 2015 15:16:03 +0100 Subject: [PATCH] mentioned the ability to cross compile in README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 8fad031..bff14c1 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,15 @@ use: cmake .. -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang +In the same way you may cross compile to another platform. For example, to cross +compile to ARM Linux using gcc you need to specify the cross compiler itself and +an argument to the compilers to indicate the target architecture: + + cmake .. -DCMAKE_CXX_COMPILER=arm-linux-gnueabi-gcc++ + -DCMAKE_CXX_FLAGS=-march=armv7-a + -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc + -DCMAKE_C_FLAGS=-march=armv7-a + EMBĀ² can be built with and without C++ exception handling, which has to be specified on build file generation. When exceptions are turned off, an error message is emitted and the program aborts in case of an exception within EMBĀ². -- libgit2 0.26.0