summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2014-02-06 13:07:17 +0100
committerEdward Hervey <bilboed@bilboed.com>2014-02-06 13:25:47 +0100
commitb89a34cedb909113acc0269412ddf9aa22a5a506 (patch)
tree71b103d38f9317d6c26132d7e666c4a631a8e50f
parent45193a7cff42993d109f59a67fe8c4b987e7f288 (diff)
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
-rw-r--r--cerbero/build/build.py2
1 files changed, 2 insertions, 0 deletions
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 '