mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-30 07:52:45 +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
|