Skip to content

Commit

Permalink
Add debugging prints to cmake to see why scudo standalone isn't build…
Browse files Browse the repository at this point in the history
…ing.
  • Loading branch information
rgal committed Jan 21, 2021
1 parent a8cdbb9 commit 92c5af0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler-rt/cmake/config-ix.cmake
Expand Up @@ -759,9 +759,14 @@ else()
endif()

#TODO(kostyak): add back Android & Fuchsia when the code settles a bit.
message(INFO "*** ${SCUDO_STANDALONE_SUPPORTED_ARCH}")
message(INFO "*** ${OS_NAME}")
message(INFO "*** ${COMPILER_RT_HAS_AUXV}")
if (SCUDO_STANDALONE_SUPPORTED_ARCH AND OS_NAME MATCHES "Linux|Windows")
message(INFO "*** Has scudo standalone")
set(COMPILER_RT_HAS_SCUDO_STANDALONE TRUE)
else()
message(INFO "*** Does not have scudo standalone")
set(COMPILER_RT_HAS_SCUDO_STANDALONE FALSE)
endif()

Expand Down
1 change: 1 addition & 0 deletions compiler-rt/lib/CMakeLists.txt
Expand Up @@ -29,6 +29,7 @@ function(compiler_rt_build_runtime runtime)
add_subdirectory(tsan/dd)
endif()
if(${runtime} STREQUAL scudo)
message(INFO "*** Adding scudo standalone")
add_subdirectory(scudo/standalone)
endif()
endif()
Expand Down
3 changes: 3 additions & 0 deletions compiler-rt/lib/scudo/standalone/CMakeLists.txt
@@ -1,5 +1,7 @@
message(INFO "*** In scudo/standalone/CMakeLists.txt ***")
add_compiler_rt_component(scudo_standalone)
if (COMPILER_RT_HAS_GWP_ASAN)
message(INFO "*** Have GWP ASAN ***")
add_dependencies(scudo_standalone gwp_asan)
endif()

Expand Down Expand Up @@ -125,6 +127,7 @@ if (COMPILER_RT_HAS_GWP_ASAN)
endif()

if(COMPILER_RT_HAS_SCUDO_STANDALONE)
message(INFO "*** COMPILER_RT_HAS_SCUDO_STANDALONE ***")
add_compiler_rt_object_libraries(RTScudoStandalone
ARCHS ${SCUDO_STANDALONE_SUPPORTED_ARCH}
SOURCES ${SCUDO_SOURCES}
Expand Down

0 comments on commit 92c5af0

Please sign in to comment.