From b89a34cedb909113acc0269412ddf9aa22a5a506 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Thu, 6 Feb 2014 13:07:17 +0100 Subject: cmake: only set the compiler tool name, whithout flags This fixes the android case where CC is set to arm-linux-androideabi-gcc -fuse-ld=gold --- cerbero/build/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cerbero/build/build.py b/cerbero/build/build.py index be5265cd..4a94ab32 100644 --- a/cerbero/build/build.py +++ b/cerbero/build/build.py @@ -302,6 +302,8 @@ class CMake (MakefilesBase): if self.config.use_ccache: cc = cc.replace('ccache', '').strip() cxx = cxx.replace('ccache', '').strip() + cc = cc.split(' ')[0] + cxx = cxx.split(' ')[0] if self.config.target_platform == Platform.WINDOWS: self.configure_options += ' -DCMAKE_SYSTEM_NAME=Windows ' -- cgit v1.2.3