mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-01-16 12:55:47 -07:00
18 lines
504 B
Bash
Executable file
18 lines
504 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
mkdir -p build
|
|
|
|
compile() {
|
|
local src="$1"
|
|
local out="$2"
|
|
echo "Building $out from $src"
|
|
g++ -O2 -std=c++17 -fconcepts -DRUN_DATASET_CLI -I../../../hangprinter-flex-compensation -I. \
|
|
../../../hangprinter-flex-compensation/flex.cpp ../../../hangprinter-flex-compensation/flex_qp.cpp "$src" -o "build/$out"
|
|
}
|
|
|
|
compile motorstepstocartesiantest_quadratic.cpp solver_quadratic
|
|
|
|
echo "Running solver comparison..."
|
|
python3 run_tests.py
|