mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
Specify C++ standard in build command
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) { ^ ```
This commit is contained in:
parent
9974b31a09
commit
0dd14a4bd0
2
code/libraries/array/cpp/compile.sh
Normal file → Executable file
2
code/libraries/array/cpp/compile.sh
Normal file → Executable file
@ -7,4 +7,4 @@ if ! which ${CXX} > /dev/null; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
${CXX} -O3 -march=native -shared -Isrc/main/public src/main/cpp/*.cpp -o resources/libcpp.so
|
||||
${CXX} -O3 -march=native -std=c++14 -shared -Isrc/main/public src/main/cpp/*.cpp -o resources/libcpp.so
|
||||
|
Loading…
Reference in New Issue
Block a user