mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
19 lines
342 B
Bash
Executable File
19 lines
342 B
Bash
Executable File
#!/bin/bash
|
|
|
|
TOOLCHAIN="$1"
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
if [ "$TOOLCHAIN" != "" ] ; then
|
|
cmake -DFASTFLOAT_TEST=ON .. -DCMAKE_TOOLCHAIN_FILE=/toolchains/"$TOOLCHAIN".cmake
|
|
else
|
|
cmake -DFASTFLOAT_TEST=ON ..
|
|
fi
|
|
make -j 2
|
|
if [ "$TOOLCHAIN" != "" ] ; then
|
|
qemu-"$TOOLCHAIN" tests/basictest
|
|
else
|
|
ctest --output-on-failure -R basictest
|
|
fi
|