summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cerbero/build/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cerbero/build/build.py b/cerbero/build/build.py
index 1a8468dc..be5265cd 100644
--- a/cerbero/build/build.py
+++ b/cerbero/build/build.py
@@ -300,8 +300,8 @@ class CMake (MakefilesBase):
cxxflags = os.environ.get('CXXFLAGS', '')
# FIXME: CMake doesn't support passing "ccache $CC"
if self.config.use_ccache:
- cc = cc.replace('ccache ', '')
- cxx = cxx.replace('ccache ', '')
+ cc = cc.replace('ccache', '').strip()
+ cxx = cxx.replace('ccache', '').strip()
if self.config.target_platform == Platform.WINDOWS:
self.configure_options += ' -DCMAKE_SYSTEM_NAME=Windows '