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:
Jaseem Abid 2024-06-12 12:46:15 +01:00
parent 9974b31a09
commit 0dd14a4bd0

2
code/libraries/array/cpp/compile.sh Normal file → Executable file
View 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