From 0dd14a4bd0e7a3b56584ce2d5f24dbaa14e39783 Mon Sep 17 00:00:00 2001 From: Jaseem Abid Date: Wed, 12 Jun 2024 12:46:15 +0100 Subject: [PATCH] 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) { ^ ``` --- code/libraries/array/cpp/compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 code/libraries/array/cpp/compile.sh diff --git a/code/libraries/array/cpp/compile.sh b/code/libraries/array/cpp/compile.sh old mode 100644 new mode 100755 index 89c6d1d6..47713569 --- a/code/libraries/array/cpp/compile.sh +++ b/code/libraries/array/cpp/compile.sh @@ -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 \ No newline at end of file +${CXX} -O3 -march=native -std=c++14 -shared -Isrc/main/public src/main/cpp/*.cpp -o resources/libcpp.so