only build replay if tools/ exists

pull/20740/head
Adeeb Shihadeh 4 years ago
parent 19d962cdf3
commit 01cb8d401a
  1. 2
      selfdrive/ui/SConscript

@ -59,7 +59,7 @@ if arch != 'aarch64' and "BUILD_SETUP" in os.environ:
qt_env.Program(f"qt/setup/installer_{name}", obj, LIBS=qt_libs, CPPDEFINES=d)
# build headless replay
if arch == 'x86_64':
if arch == 'x86_64' and os.path.exists(Dir("#tools/").get_abspath()):
qt_env['CPPPATH'] += ["#tools/clib"]
qt_env['CXXFLAGS'] += ["-Wno-deprecated-declarations"]

Loading…
Cancel
Save