mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 03:02:10 +08:00
Fix build errors and add more targets to Windows builds (#6811)
* Fix common.fbs rename (due to apache/arrow/commit/bef9a1c251397311a6415d3dc362ef419d154caa) * Add missing COPTS * Use socketpair(AF_INET) if boost::asio::local is unavailable (e.g. on Windows) * Fix compile bug in service_based_gcs_client_test.cc (fix build breakage in #6686) * Work around googletest/gmock inability to specify override to avoid -Werror,-Winconsistent-missing-override * Fix missing override on IsPlasmaBuffer() * Fix missing libraries for streaming * Factor out install-toolchains.sh * Put some Bazel flags into .bazelrc * Fix jni_md.h missing inclusion * Add ~/bin to PATH for Bazel * Change echo $$(date) > $@ to date > $@ * Fix lots of unquoted paths * Add system() call checks for Windows Co-authored-by: GitHub Web Flow <noreply@github.com>
This commit is contained in:
+19
-19
@@ -173,21 +173,21 @@ genrule(
|
||||
outs = ["gen_maven_deps.out"],
|
||||
cmd = """
|
||||
set -x
|
||||
WORK_DIR=$$(pwd)
|
||||
WORK_DIR="$$(pwd)"
|
||||
# Copy protobuf-generated files.
|
||||
rm -rf $$WORK_DIR/java/runtime/src/main/java/org/ray/runtime/generated
|
||||
rm -rf "$$WORK_DIR/java/runtime/src/main/java/org/ray/runtime/generated"
|
||||
for f in $(locations //java:all_java_proto); do
|
||||
unzip $$f -x META-INF/MANIFEST.MF -d $$WORK_DIR/java/runtime/src/main/java
|
||||
unzip "$$f" -x META-INF/MANIFEST.MF -d "$$WORK_DIR/java/runtime/src/main/java"
|
||||
done
|
||||
# Copy native dependecies.
|
||||
NATIVE_DEPS_DIR=$$WORK_DIR/java/runtime/native_dependencies/
|
||||
rm -rf $$NATIVE_DEPS_DIR
|
||||
mkdir -p $$NATIVE_DEPS_DIR
|
||||
NATIVE_DEPS_DIR="$$WORK_DIR/java/runtime/native_dependencies/"
|
||||
rm -rf "$$NATIVE_DEPS_DIR"
|
||||
mkdir -p "$$NATIVE_DEPS_DIR"
|
||||
for f in $(locations //java:java_native_deps); do
|
||||
chmod +w $$f
|
||||
cp $$f $$NATIVE_DEPS_DIR
|
||||
chmod +w "$$f"
|
||||
cp "$$f" "$$NATIVE_DEPS_DIR"
|
||||
done
|
||||
echo $$(date) > $@
|
||||
date > $@
|
||||
""",
|
||||
local = 1,
|
||||
tags = ["no-cache"],
|
||||
@@ -202,12 +202,12 @@ genrule(
|
||||
outs = ["copy_pom_file.out"],
|
||||
cmd = """
|
||||
set -x
|
||||
WORK_DIR=$$(pwd)
|
||||
cp -f $(location //java:org_ray_ray_api_pom) $$WORK_DIR/java/api/pom.xml
|
||||
cp -f $(location //java:org_ray_ray_runtime_pom) $$WORK_DIR/java/runtime/pom.xml
|
||||
cp -f $(location //java:org_ray_ray_tutorial_pom) $$WORK_DIR/java/tutorial/pom.xml
|
||||
cp -f $(location //java:org_ray_ray_test_pom) $$WORK_DIR/java/test/pom.xml
|
||||
echo $$(date) > $@
|
||||
WORK_DIR="$$(pwd)"
|
||||
cp -f $(location //java:org_ray_ray_api_pom) "$$WORK_DIR/java/api/pom.xml"
|
||||
cp -f $(location //java:org_ray_ray_runtime_pom) "$$WORK_DIR/java/runtime/pom.xml"
|
||||
cp -f $(location //java:org_ray_ray_tutorial_pom) "$$WORK_DIR/java/tutorial/pom.xml"
|
||||
cp -f $(location //java:org_ray_ray_test_pom) "$$WORK_DIR/java/test/pom.xml"
|
||||
date > $@
|
||||
""",
|
||||
local = 1,
|
||||
tags = ["no-cache"],
|
||||
@@ -234,10 +234,10 @@ genrule(
|
||||
],
|
||||
outs = ["ray_java_pkg.out"],
|
||||
cmd = """
|
||||
WORK_DIR=$$(pwd)
|
||||
rm -rf $$WORK_DIR/python/ray/jars && mkdir -p $$WORK_DIR/python/ray/jars
|
||||
cp -f $(location //java:ray_dist_deploy.jar) $$WORK_DIR/python/ray/jars/ray_dist.jar
|
||||
echo $$(date) > $@
|
||||
WORK_DIR="$$(pwd)"
|
||||
rm -rf "$$WORK_DIR/python/ray/jars" && mkdir -p "$$WORK_DIR/python/ray/jars"
|
||||
cp -f $(location //java:ray_dist_deploy.jar) "$$WORK_DIR/python/ray/jars/ray_dist.jar"
|
||||
date > $@
|
||||
""",
|
||||
local = 1,
|
||||
tags = ["no-cache"],
|
||||
|
||||
Reference in New Issue
Block a user