From 78e1167a424b2aafbcc1ec65733fac302d648558 Mon Sep 17 00:00:00 2001 From: Alexey Tumanov Date: Mon, 27 Mar 2017 20:55:50 -0700 Subject: [PATCH] Parallelize make in build.sh. (#371) * parallelize build.sh make * Encode in cmake the dependency of ray_redis_module on autogenerated flatbuffer files. --- build.sh | 2 +- src/common/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index a788bf7b3..975d48106 100755 --- a/build.sh +++ b/build.sh @@ -32,5 +32,5 @@ pushd "$ROOT_DIR/python/ray/core" cmake -DCMAKE_BUILD_TYPE=Release ../../.. fi make clean - make + make -j${PARALLEL} popd diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 1fc4daca2..04fd71bed 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -37,6 +37,10 @@ add_custom_command( COMMENT "Running flatc compiler on ${COMMON_FBS_SRC}" VERBATIM) +# Encode the fact that the ray redis module requires the autogenerated +# flatbuffer files to compile. +add_dependencies(ray_redis_module gen_common_fbs) + add_dependencies(gen_common_fbs flatbuffers_ep) add_custom_target(