Skip to content

Commit bc2cc8b

Browse files
authored
Change binary path in libc test cmake file from relative to absolute (#148315)
For some reason cmake usually turns this path into an absolute path, but sometimes it doesn't do it and stays as a relative path, which means the command will fail. Specify it as an absolute path always so this doesn't happen any more.
1 parent 8afab75 commit bc2cc8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/cmake/modules/LLVMLibCTestRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function(create_libc_unittest fq_target_name)
327327
if(NOT LIBC_UNITTEST_NO_RUN_POSTBUILD)
328328
add_custom_target(
329329
${fq_target_name}
330-
COMMAND ${LIBC_UNITTEST_ENV} ${CMAKE_CROSSCOMPILING_EMULATOR} ${fq_build_target_name}
330+
COMMAND ${LIBC_UNITTEST_ENV} ${CMAKE_CROSSCOMPILING_EMULATOR} ${CMAKE_CURRENT_BINARY_DIR}/${fq_build_target_name}
331331
COMMENT "Running unit test ${fq_target_name}"
332332
DEPENDS ${fq_build_target_name}
333333
)

0 commit comments

Comments
 (0)