only build replay if tools/ exists

This commit is contained in:
Adeeb Shihadeh
2021-04-24 09:59:10 -07:00
parent 19d962cdf3
commit 01cb8d401a
+1 -1
View File
@@ -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"]