1
1
mirror of https://github.com/MarginaliaSearch/MarginaliaSearch.git synced 2025-10-05 21:22:39 +02:00
Files
MarginaliaSearch/code/libraries/array/cpp/compile.sh
Viktor Lofgren 92b09883ec (index) Switch from AIO to io_uring
Turns AIO is just bad especially with buffered I/O, io_uring performs strictly better in this scenario.
2025-08-03 21:19:54 +02:00

11 lines
252 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 -fPIC -luring -shared -Isrc/main/public src/main/cpp/*.cpp -o resources/libcpp.so