mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 12:40:13 +00:00
17 lines
403 B
Bash
Executable File
17 lines
403 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
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"
|
|
|
|
cd /citra
|
|
|
|
mkdir build && cd build
|
|
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++
|
|
ninja
|
|
|
|
ctest -VV -C Release
|