mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 18:01:32 +03:00
25 lines
512 B
Bash
25 lines
512 B
Bash
|
source $setup
|
||
|
|
||
|
mkdir -p $out/bin
|
||
|
|
||
|
cd $out/bin
|
||
|
|
||
|
CXXFLAGS="$CXXFLAGS -DWRAPPER_PATH=\\\"$out/bin:$ld/bin:$clang/bin\\\""
|
||
|
|
||
|
eval "g++ $CXXFLAGS $src_file -o $host-wrapper"
|
||
|
|
||
|
ln -s $clang/bin/llvm-dsymutil dsymutil
|
||
|
ln -s $ar/bin/$host-ar
|
||
|
ln -s $ranlib/bin/$host-ranlib
|
||
|
ln -s $ranlib/bin/$host-libtool
|
||
|
ln -s $strip/bin/$host-strip
|
||
|
|
||
|
ln -s $host-wrapper $host-cc
|
||
|
ln -s $host-wrapper $host-c++
|
||
|
|
||
|
ln -s $host-wrapper $host-clang
|
||
|
ln -s $host-wrapper $host-clang++
|
||
|
|
||
|
ln -s $host-wrapper $host-gcc
|
||
|
ln -s $host-wrapper $host-g++
|