[compiler-rt] 92c5af0 - Add debugging prints to cmake to see why scudo standalone isn't building.

Russell Gallop via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 04:22:56 PST 2021


Author: Russell Gallop
Date: 2021-01-21T16:54:20Z
New Revision: 92c5af0e32607a037add58e3603e1bbef8dffcad

URL: https://github.com/llvm/llvm-project/commit/92c5af0e32607a037add58e3603e1bbef8dffcad
DIFF: https://github.com/llvm/llvm-project/commit/92c5af0e32607a037add58e3603e1bbef8dffcad.diff

LOG: Add debugging prints to cmake to see why scudo standalone isn't building.

Added: 
    

Modified: 
    compiler-rt/cmake/config-ix.cmake
    compiler-rt/lib/CMakeLists.txt
    compiler-rt/lib/scudo/standalone/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake
index 327172b35938..889f847e4971 100644
--- a/compiler-rt/cmake/config-ix.cmake
+++ b/compiler-rt/cmake/config-ix.cmake
@@ -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()
 

diff  --git a/compiler-rt/lib/CMakeLists.txt b/compiler-rt/lib/CMakeLists.txt
index c1c6880a4720..30bbcaaa2ef7 100644
--- a/compiler-rt/lib/CMakeLists.txt
+++ b/compiler-rt/lib/CMakeLists.txt
@@ -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()

diff  --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
index dfae6dde5e4d..5b06811eb2ab 100644
--- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt
+++ b/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()
 
@@ -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}


        


More information about the llvm-commits mailing list