2017-10-21 16:46:46 -05:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
2020-04-26 03:43:39 -05:00
|
|
|
mkdir -p ~/bin/gold
|
|
|
|
echo '#!/bin/bash' > ~/bin/gold/ld
|
|
|
|
echo 'gold "$@"' >> ~/bin/gold/ld
|
|
|
|
chmod a+x ~/bin/gold/ld
|
|
|
|
export CFLAGS="-B$HOME/bin/gold $CFLAGS"
|
|
|
|
export CXXFLAGS="-B$HOME/bin/gold $CXXFLAGS"
|
|
|
|
|
2017-10-21 16:46:46 -05:00
|
|
|
cd /citra
|
|
|
|
|
|
|
|
mkdir build && cd build
|
2019-08-13 19:51:43 -05:00
|
|
|
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++
|
2018-08-23 17:32:48 -05:00
|
|
|
ninja
|
2017-10-21 16:46:46 -05:00
|
|
|
|
|
|
|
ctest -VV -C Release
|