mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-25 06:42:04 +08:00
fix compile error
This commit is contained in:
@@ -4,9 +4,15 @@ libs = ['usb-1.0', common, messaging, 'pthread']
|
||||
panda = env.Library('panda', ['panda.cc', 'panda_comms.cc', 'spi.cc'])
|
||||
|
||||
env.Program('pandad', ['main.cc', 'pandad.cc', 'panda_safety.cc'], LIBS=[panda] + libs)
|
||||
env.Library('libcan_list_to_can_capnp', ['can_list_to_can_capnp.cc'])
|
||||
|
||||
pandad_python = envCython.Program('pandad_api_impl.so', 'pandad_api_impl.pyx', LIBS=["can_list_to_can_capnp", 'capnp', 'kj'] + envCython["LIBS"])
|
||||
# can_list_to_can_capnp.cc is #included directly into pandad_api_impl.cpp via the
|
||||
# `cdef extern from "can_list_to_can_capnp.cc"` in the .pyx, so its symbols are
|
||||
# compiled straight into pandad_api_impl.o. No separate library is needed — the
|
||||
# old env.Library('libcan_list_to_can_capnp', ...) produced a .a whose members
|
||||
# were never actually linked (symbols already satisfied by the .o), and the
|
||||
# string LIBS=["can_list_to_can_capnp"] only caused a spurious LIBPATH lookup
|
||||
# that failed on c3X.
|
||||
pandad_python = envCython.Program('pandad_api_impl.so', 'pandad_api_impl.pyx', LIBS=['capnp', 'kj'] + envCython["LIBS"])
|
||||
Export('pandad_python')
|
||||
|
||||
if GetOption('extras'):
|
||||
|
||||
Reference in New Issue
Block a user