Skip to content

Commit

Permalink
Added debug lines for executable prefixes in portable mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed Mar 29, 2022
1 parent 085a85c commit 9b8d56f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmake/benchmarking.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
## =============================================================================

if(CTBENCH_PORTABLE)
set(GRAPHER_FOLDER ${CMAKE_BINARY_DIR}/grapher/ PARENT_SCOPE)
set(TTW_FOLDER ${CMAKE_BINARY_DIR}/ttw/ PARENT_SCOPE)
set(GRAPHER_PREFIX ${CMAKE_BINARY_DIR}/grapher/ PARENT_SCOPE)
set(TTW_PREFIX ${CMAKE_BINARY_DIR}/ttw/ PARENT_SCOPE)

message(ctbench was imported)
message(GRAPHER_PREFIX: ${GRAPHER_PREFIX})
message(TTW_PREFIX: ${TTW_PREFIX})
endif()

## =============================================================================
Expand All @@ -32,7 +36,7 @@ function(_ctbench_internal_add_compile_benchmark target_name output source
# Setting ctbench-ttw as a compiler launcher
set_target_properties(
${target_name} PROPERTIES CXX_COMPILER_LAUNCHER
"${TTW_FOLDER}ctbench-ttw;${output}")
"${TTW_PREFIX}ctbench-ttw;${output}")

if(CTBENCH_PORTABLE)
add_dependencies(${target_name} ctbench-ttw)
Expand Down Expand Up @@ -167,7 +171,7 @@ function(ctbench_add_graph category config)
set(config_path ${CMAKE_CURRENT_SOURCE_DIR}/${config})
add_custom_target(
${category}
COMMAND ${GRAPHER_FOLDER}ctbench-grapher-plot --output=${category}
COMMAND ${GRAPHER_PREFIX}ctbench-grapher-plot --output=${category}
--config=${config_path} ${ARGN}
DEPENDS ${config_path} ${ARGN}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
Expand Down

0 comments on commit 9b8d56f

Please sign in to comment.