mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00

The default C++ language standard on macOS is gnu++98, which won't build this module. Full error: ``` > Task :code:libraries:array:cpp:compileCpp FAILED src/main/cpp/cpphelpers.cpp:28:5: error: expected expression [](const p64x2& fst, const p64x2& snd) { ^ ```
11 lines
238 B
Bash
Executable File
11 lines
238 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
CXX=${CXX:-g++}
|
|
|
|
if ! which ${CXX} > /dev/null; then
|
|
echo "g++ not found, skipping compilation"
|
|
exit 0
|
|
fi
|
|
|
|
${CXX} -O3 -march=native -std=c++14 -shared -Isrc/main/public src/main/cpp/*.cpp -o resources/libcpp.so
|