build: Update to support multi-arch builds.
This commit is contained in:
@@ -12,15 +12,9 @@ add_executable(tests
|
||||
precompiled_headers.h
|
||||
audio_core/audio_fixures.h
|
||||
audio_core/decoder_tests.cpp
|
||||
video_core/shader/shader_jit_x64_compiler.cpp
|
||||
)
|
||||
|
||||
if (ARCHITECTURE_x86_64)
|
||||
target_sources(tests
|
||||
PRIVATE
|
||||
video_core/shader/shader_jit_x64_compiler.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
create_target_directory_groups(tests)
|
||||
|
||||
target_link_libraries(tests PRIVATE common core video_core audio_core)
|
||||
|
@@ -2,6 +2,9 @@
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "common/arch.h"
|
||||
#if CITRA_ARCH(x86_64)
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <memory>
|
||||
@@ -158,3 +161,5 @@ TEST_CASE("Nested Loop", "[video_core][shader][shader_jit]") {
|
||||
REQUIRE(shader_unit_jit.registers.output[0].x.ToFloat32() == Catch::Approx(expected_out));
|
||||
}
|
||||
}
|
||||
|
||||
#endif // CITRA_ARCH(x86_64)
|
||||
|
Reference in New Issue
Block a user