mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
BUILD_TESTING is provided by CMake, so the separate toggle is just redundant.
18 lines
495 B
Bash
Executable File
18 lines
495 B
Bash
Executable File
#! /usr/bin/env nix-shell
|
|
#! nix-shell -i bash FEXLinuxTests/shell.nix
|
|
|
|
# Helper script to configure CMake for building FEXLinuxTests.
|
|
# Nix is used to install and manage the required cross-toolchains.
|
|
|
|
if [ ! -f CMakeCache.txt ]
|
|
then
|
|
echo "Must be run from a pre-configured CMake build folder"
|
|
exit 1
|
|
fi
|
|
|
|
# Remove previous build to ensure the new toolchain is applied
|
|
rm -rf unittests/FEXLinuxTests
|
|
|
|
set -o xtrace
|
|
cmake . $FEX_CMAKE_TOOLCHAINS -DBUILD_TESTING=ON -DBUILD_FEX_LINUX_TESTS=ON
|