mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-18 01:50:16 +08:00
Fix a few ccache cache miss (#2573)
* Fix ccache cache miss * Do not define _VERSION_ in python bindings
This commit is contained in:
3
setup.py
3
setup.py
@@ -121,7 +121,8 @@ class CMakeBuild(build_ext):
|
||||
build_args += [f"-j{os.cpu_count()}"]
|
||||
|
||||
# Avoid cache miss when building from temporary dirs.
|
||||
os.environ["CCACHE_BASEDIR"] = os.path.abspath(self.build_temp)
|
||||
os.environ["CCACHE_BASEDIR"] = os.path.realpath(self.build_temp)
|
||||
os.environ["CCACHE_NOHASHDIR"] = "true"
|
||||
|
||||
subprocess.run(
|
||||
["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True
|
||||
|
Reference in New Issue
Block a user