Welcome to mirror list, hosted at ThFree Co, Russian Federation.

standalone_alltests_gcc.sh « attic - github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cc00e4dcf147f8ab0b24c40e42bfbdb3976eecc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
if [ -z "$CXX" ]; then
  if [ "$HOSTTYPE" = "FreeBSD" ]; then
    CXX=clang++
  else
    CXX=g++
  fi
fi
HOSTOS=$(uname)
if [ "$HOSTOS" = "Linux" ]; then
  LIBATOMIC="-ldl"
  if [ "$CXX" != "${CXX#clang++}" ] && [ "$NODE_NAME" = "linux-gcc-clang" ]; then
    LIBATOMIC="$LIBATOMIC -latomic"
  fi
fi
if [ "$HOSTOS" = "FreeBSD" ]; then
  LIBATOMIC="-I/usr/local/include -L/usr/local/lib -lexecinfo"
fi
if [ ! -d asio ]; then
  sh -c "git clone https://github.com/chriskohlhoff/asio.git"
fi
cd test
sh ./test_file_glob.sh
cd ..
rm -rf test_all
$CXX -o test_all -g -O3 -DNDEBUG -std=c++11 -rdynamic -fstrict-aliasing -Wstrict-aliasing -Wno-unused -fasynchronous-unwind-tables test/test_all.cpp detail/SpookyV2.cpp -Iinclude -Itest -DAFIO_STANDALONE=1 -Iasio/asio/include -DSPINLOCK_STANDALONE=1 -DASIO_STANDALONE=1  -DBOOST_AFIO_RUNNING_IN_CI=1 -Wno-unused-value -lboost_filesystem -lboost_system -lpthread $LIBATOMIC