diff options
author | Mikhail R. Gadelha <mikhail@igalia.com> | 2024-07-04 18:33:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 13:33:54 -0300 |
commit | 2307d270ccbf75dc72e8b4406bc0ec88781328f0 (patch) | |
tree | 9b4d7badab5be2f61f519ecf9513d07d4b362af9 /libc | |
parent | bb6ab8b4f491cb1eaf6a88ca0b0bb283e3bd8bba (diff) | |
download | llvm-2307d270ccbf75dc72e8b4406bc0ec88781328f0.zip llvm-2307d270ccbf75dc72e8b4406bc0ec88781328f0.tar.gz llvm-2307d270ccbf75dc72e8b4406bc0ec88781328f0.tar.bz2 |
[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.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/test/src/__support/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/src/__support/CMakeLists.txt b/libc/test/src/__support/CMakeLists.txt index 98f263b..e1de08e 100644 --- a/libc/test/src/__support/CMakeLists.txt +++ b/libc/test/src/__support/CMakeLists.txt @@ -239,7 +239,7 @@ if(NOT LIBC_TARGET_OS_IS_GPU) add_custom_command(TARGET libc_str_to_float_comparison_test POST_BUILD - COMMAND $<TARGET_FILE:libc_str_to_float_comparison_test> ${float_test_file} + COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:libc_str_to_float_comparison_test> ${float_test_file} DEPENDS ${float_test_file} COMMENT "Test the strtof and strtod implementations against precomputed results." VERBATIM) |