Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions cpp/src/plasma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,11 @@ if(ARROW_PLASMA_JAVA_CLIENT)
plasma_shared
${PLASMA_LINK_LIBS}
"-undefined dynamic_lookup"
-Wl,-force_load,flatbuffers::flatbuffers
flatbuffers::flatbuffers
${PTHREAD_LIBRARY})
else(APPLE)
target_link_libraries(plasma_java
plasma_shared
${PLASMA_LINK_LIBS}
-Wl,--whole-archive
flatbuffers::flatbuffers
-Wl,--no-whole-archive
flatbuffers::flatbuffers
${PTHREAD_LIBRARY})
endif(APPLE)
endif()
Expand Down
8 changes: 4 additions & 4 deletions java/plasma/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pushd ../../cpp
mkdir release
fi
pushd release
cmake -DCMAKE_BUILD_TYPE=Release \
sudo cmake -DCMAKE_BUILD_TYPE=Release \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think sudo is a good idea here? What problem is this working around?

-DCMAKE_C_FLAGS="-g -O3" \
-DCMAKE_CXX_FLAGS="-g -O3" \
-DARROW_BUILD_TESTS=off \
Expand All @@ -47,10 +47,10 @@ pushd ../../cpp
-DARROW_WITH_ZSTD=off \
-DARROW_PLASMA_JAVA_CLIENT=on \
..
make VERBOSE=1 -j$PARALLEL
sudo make VERBOSE=1 -j$PARALLEL
popd
popd

mvn clean install
export PLASMA_STORE=$ROOT_DIR/../../cpp/release/release/plasma_store_server
java -cp target/test-classes:target/classes -Djava.library.path=$ROOT_DIR/../../cpp/release/release/ org.apache.arrow.plasma.PlasmaClientTest
export PLASMA_STORE=$CONDA_PREFIX/tmp/arrow/cpp/release/release/plasma-store-server

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its not clear to me that CONDA_PREFIX is the right thing to use here if this is intended as a development script.

java -cp target/test-classes:target/classes -Djava.library.path=$CONDA_PREFIX/tmp/arrow/cpp/release/release/ org.apache.arrow.plasma.PlasmaClientTest