File: bolt-disable-proc-check.diff

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,236,204 kB
  • sloc: cpp: 7,619,103; ansic: 1,433,921; asm: 1,058,734; python: 252,125; f90: 94,671; objc: 70,753; lisp: 42,813; pascal: 18,401; sh: 10,093; ml: 5,111; perl: 4,720; awk: 3,523; makefile: 3,397; javascript: 2,272; xml: 892; fortran: 770
file content (23 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
bolt: Disable the check for /proc/self/map_files. Might not be available on build machines

Index: llvm-toolchain-snapshot_21~++20250531102322+061ef3c6e227/bolt/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_21~++20250531102322+061ef3c6e227.orig/bolt/CMakeLists.txt
+++ llvm-toolchain-snapshot_21~++20250531102322+061ef3c6e227/bolt/CMakeLists.txt
@@ -94,16 +94,6 @@ if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x8
   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")