Skip to content

Commit

Permalink
WIP Merge CMake ExternalProject invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrtonm committed Mar 6, 2024
1 parent 713d4cd commit 48295ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmake/define-ia2-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function(define_ia2_wrapper)
add_custom_command(
OUTPUT ${CALL_GATE_SRC} ${CALL_GATE_HDR} ${LD_ARGS_FILES}
${ALL_SRCS}
COMMAND ${CMAKE_BINARY_DIR}/rewriter/ia2-rewriter
COMMAND ${CMAKE_BINARY_DIR}/tools/rewriter/ia2-rewriter
--output-prefix=${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}_call_gates
--root-directory=${CMAKE_CURRENT_SOURCE_DIR}
--output-directory=${CMAKE_CURRENT_BINARY_DIR}
Expand All @@ -76,7 +76,7 @@ function(define_ia2_wrapper)
${DEFINE_IA2_WRAPPER_EXTRA_REWRITER_ARGS}
${ORIGINAL_SRCS}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
DEPENDS ia2-rewriter ${ORIGINAL_SRCS}
DEPENDS tools ${ORIGINAL_SRCS}
VERBATIM)

add_custom_target(
Expand Down
4 changes: 2 additions & 2 deletions cmake/define-test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ function(define_test)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libc.so.6
COMMAND ${CMAKE_COMMAND} -E copy ${LIBC_PATH} ${CMAKE_CURRENT_BINARY_DIR}/libc.so.6
COMMAND ${CMAKE_BINARY_DIR}/pad-tls/pad-tls --allow-no-tls ${CMAKE_CURRENT_BINARY_DIR}/libc.so.6
DEPENDS pad-tls
COMMAND ${CMAKE_BINARY_DIR}/tools/pad-tls/pad-tls --allow-no-tls ${CMAKE_CURRENT_BINARY_DIR}/libc.so.6
DEPENDS tools
COMMENT "Padding TLS segment of libc"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
)

set(IA2_TEST_DEPENDS ia2-rewriter)
set(IA2_TEST_DEPENDS tools)

add_lit_testsuite(check-ia2 "Running the IA2 tests"
${CMAKE_CURRENT_BINARY_DIR}
Expand Down

0 comments on commit 48295ac

Please sign in to comment.