File: compile.sh

package info (click to toggle)
xsimd 8.1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,092 kB
  • sloc: cpp: 24,756; sh: 412; makefile: 184; python: 25
file content (18 lines) | stat: -rwxr-xr-x 262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e
set -u

CC=$1

if [ "$(dpkg --print-architecture)" = "armhf" ]; then
    CXXFLAGS="-mfloat-abi=hard -mfpu=neon"
else
    CXXFLAGS=""
fi

cp debian/tests/test.cpp "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
${CC} $CXXFLAGS test.cpp -o test
./test