Skip to content

Commit 2307d27

Browse files
[libc] fix float_comparison_test when an emulator is used to run the test (#97748)
This patch adds a missing ${CMAKE_CROSSCOMPILING_EMULATOR} to the call to libc_str_to_float_comparison_test so the test can run in an emulator, if required. This is currently required for the rv32 buildbot, which runs in a qemu emulator.
1 parent bb6ab8b commit 2307d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/__support/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
239239

240240
add_custom_command(TARGET libc_str_to_float_comparison_test
241241
POST_BUILD
242-
COMMAND $<TARGET_FILE:libc_str_to_float_comparison_test> ${float_test_file}
242+
COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:libc_str_to_float_comparison_test> ${float_test_file}
243243
DEPENDS ${float_test_file}
244244
COMMENT "Test the strtof and strtod implementations against precomputed results."
245245
VERBATIM)

0 commit comments

Comments
 (0)