Skip to content

Commit cdcf1d5

Browse files
committed
When QEMU testing is enabled, QEMU should be required
Since QEMU is needed to run tests with QEMU, if the program cannot be found the build should stop and an error generated.
1 parent 6b5c313 commit cdcf1d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arm-runtimes/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ if(ENABLE_LIBC_TESTS OR ENABLE_COMPILER_RT_TESTS OR ENABLE_LIBCXX_TESTS)
157157

158158
if(TEST_EXECUTOR STREQUAL qemu)
159159
if(TARGET_ARCH MATCHES "^aarch64")
160-
find_program(QEMU_EXECUTABLE qemu-system-aarch64)
160+
find_program(QEMU_EXECUTABLE qemu-system-aarch64 REQUIRED)
161161
else()
162-
find_program(QEMU_EXECUTABLE qemu-system-arm)
162+
find_program(QEMU_EXECUTABLE qemu-system-arm REQUIRED)
163163
endif()
164164

165165
# Use colon as a separator because comma and semicolon are used for

0 commit comments

Comments
 (0)