diff options
Diffstat (limited to 'libc/test/CMakeLists.txt')
-rw-r--r-- | libc/test/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/test/CMakeLists.txt b/libc/test/CMakeLists.txt index f22f2b1..745a9a0 100644 --- a/libc/test/CMakeLists.txt +++ b/libc/test/CMakeLists.txt @@ -8,9 +8,9 @@ add_custom_target(libc-long-running-tests) add_subdirectory(UnitTest) -if(LIBC_TARGET_ARCHITECTURE_IS_GPU AND - (NOT TARGET libc.utils.gpu.loader OR NOT TARGET libc.startup.gpu.crt1)) - message(WARNING "Cannot build libc GPU tests, missing loader implementation") +if(LIBC_TARGET_OS_IS_GPU AND + (NOT TARGET libc.utils.gpu.loader OR LIBC_GPU_TESTS_DISABLED)) + message(WARNING "Cannot build libc GPU tests, missing loader or architecture") return() endif() |