bolt-disable-proc-check
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 14 Mar 2025 09:48:31 +0000 (10:48 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 14 Mar 2025 09:48:31 +0000 (10:48 +0100)
bolt: Disable the check for /proc/self/map_files. Might not be available on build machines

Gbp-Pq: Name bolt-disable-proc-check.diff

bolt/CMakeLists.txt

index 74907ad118d12f22266adc328e41ad61879cf744..228b61b5c88080e01a9342cbc07fd63ea560b0e7 100644 (file)
@@ -42,16 +42,6 @@ if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64"
   set(BOLT_ENABLE_RUNTIME_default ON)
 endif()
 option(BOLT_ENABLE_RUNTIME "Enable BOLT runtime" ${BOLT_ENABLE_RUNTIME_default})
-if (BOLT_ENABLE_RUNTIME)
-  # Some systems prevent reading /proc/self/map_files
-  execute_process(COMMAND ls /proc/self/map_files
-    RESULT_VARIABLE LS OUTPUT_QUIET ERROR_QUIET)
-  if (LS)
-    message(WARNING
-      "BOLT runtime may not be able to read /proc/self/map_files. Please use
-      `--instrumentation-binpath <path-to-instrumented-binary>` option.")
-  endif()
-endif()
 
 set(BOLT_CLANG_EXE "" CACHE FILEPATH "Path to clang executable for the target \
 architecture for use in BOLT tests")