piston/packages/julia/1.5.4/build.sh

22 lines
475 B
Bash
Raw Normal View History

2021-03-14 17:40:31 +01:00
#!/usr/bin/env bash
# Install location
PREFIX=$(realpath $(dirname $0))
2021-03-15 07:24:59 +01:00
mkdir -p build
cd build
# Download and extract Julia source
curl -L "https://github.com/JuliaLang/julia/releases/download/v1.5.4/julia-1.5.4.tar.gz" -o julia.tar.gz
tar xzf julia.tar.gz --strip-components=1
# Build
echo "JULIA_CPU_TARGET=generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)
prefix=$PREFIX" > Make.user
make -j$(nproc)
make install -j$(nproc)
# Cleanup
cd ..
rm -rf build