File: generate-make-jsonl

package info (click to toggle)
python-cython-blis 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 43,676 kB
  • sloc: ansic: 645,510; sh: 2,354; asm: 1,466; python: 821; cpp: 585; makefile: 14
file content (32 lines) | stat: -rwxr-xr-x 1,049 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
#!/usr/bin/env bash

set -e

OS="$1"
ARCH="$2"
EXPORT="$3"
JSONL="blis/_src/make/$OS-$ARCH.jsonl"

cd flame-blis
if [ ! -f $JSONL ]; then
    echo "Compile"
    if [[ "$OS" == "windows" ]]; then
        mingw32-make clean
        ./configure --disable-blas --disable-cblas --disable-shared --disable-threading --int-size=64 --enable-verbose-make --enable-arg-max-hack $ARCH
        mingw32-make -j 4 > make.log
    else
        make clean
        ./configure --disable-blas --disable-cblas --disable-shared --disable-threading --int-size=64 --enable-verbose-make --export-shared=all $ARCH
        make > make.log 
    fi
    echo "Preprocess make log"
    cat make.log | python ../bin/munge_make_log.py $OS $ARCH > ../$JSONL
    mkdir -p ../blis/_src/include/$OS-$ARCH/
    cp include/$ARCH/blis.h ../blis/_src/include/$OS-$ARCH/blis.h
fi

if [[ "$EXPORT" == "--export" ]]; then
  mkdir -p ../artifacts/
  cp ../blis/_src/include/$OS-$ARCH/blis.h ../artifacts/blis-$OS-$ARCH.h
  cp ../blis/_src/make/$OS-$ARCH.jsonl ../artifacts/$OS-$ARCH.jsonl;
fi