openpilot v0.5.11 release

old-commit-hash: 2f92d577f995ff6ae1945ef6b89df3cb69b92999
This commit is contained in:
Vehicle Researcher
2019-04-23 01:41:19 +00:00
parent 1abde66b55
commit 83dfc3ca1f
99 changed files with 2751 additions and 1617 deletions

View File

@@ -4,10 +4,8 @@ import fcntl
import hashlib
from cffi import FFI
TMPDIR = "/tmp/ccache"
def ffi_wrap(name, c_code, c_header, tmpdir=TMPDIR, cflags="", libraries=None):
def ffi_wrap(name, c_code, c_header, tmpdir="/tmp/ccache", cflags="", libraries=None):
if libraries is None:
libraries = []
@@ -24,7 +22,7 @@ def ffi_wrap(name, c_code, c_header, tmpdir=TMPDIR, cflags="", libraries=None):
try:
mod = __import__(cache)
except Exception:
print "cache miss", cache
print("cache miss {0}".format(cache))
compile_code(cache, c_code, c_header, tmpdir, cflags, libraries)
mod = __import__(cache)
finally: