mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 22:23:17 +08:00
Parallelize make in build.sh. (#371)
* parallelize build.sh make * Encode in cmake the dependency of ray_redis_module on autogenerated flatbuffer files.
This commit is contained in:
committed by
Robert Nishihara
parent
0925e11c48
commit
78e1167a42
@@ -32,5 +32,5 @@ pushd "$ROOT_DIR/python/ray/core"
|
||||
cmake -DCMAKE_BUILD_TYPE=Release ../../..
|
||||
fi
|
||||
make clean
|
||||
make
|
||||
make -j${PARALLEL}
|
||||
popd
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user