Skip to content

Commit

Permalink
get rid of cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
serxa committed Jul 15, 2024
1 parent aa13deb commit 2718d5f
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,8 @@ echo "CXX=$CXX"
# export CXXFLAGS="-stdlib=libc++"
#fi

if [ "$1" = "aarch64" ]; then
if [ ! -e "/usr/aarch64-linux-gnu" ]; then
echo "Tools for aarch64 cross-compilation not detected, try to install with:"
echo " sudo apt-get update"
echo " sudo apt-get install gcc-aarch64-linux-gnu"
exit 1
fi
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-aarch64.cmake ..
make
else
cmake ..
make
fi
cmake ..
make

# Simpler way to build without cmake, but with dynamic linking
#mkdir -p build && $CXX main.cpp -o build/stress_memcg -O3 -pthread -fno-omit-frame-pointer
#mkdir -p build && $CXX main.cpp -o build/stress_memcg -O3 -pthread -fno-omit-frame-pointer

0 comments on commit 2718d5f

Please sign in to comment.