#!/bin/sh

set -e

source_dir=$2
build_dir=$3

cd $build_dir/openlibm-${Y_PORT_VERSION}
make \
    SYSROOT=$Y_SYSROOT \
    ARCH=$Y_ARCH \
    TRIPLE=${Y_ARCH}-unknown-yggdrasil \
    USECLANG=1 \
    CC=clang
