Skip to content

Commit 1918d4b

Browse files
authored
[BOLT][CMake] Build rt library despite unreadable map_files (#77876)
Emit a warning and print a suggested workaround. Fixes #77822.
1 parent a7d5f73 commit 1918d4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ if (BOLT_ENABLE_RUNTIME)
4545
execute_process(COMMAND ls /proc/self/map_files
4646
RESULT_VARIABLE LS OUTPUT_QUIET ERROR_QUIET)
4747
if (LS)
48-
set(BOLT_ENABLE_RUNTIME OFF)
4948
message(WARNING
50-
"BOLT runtime is disabled as /proc/self/map_files is unreadable.")
49+
"BOLT runtime may not be able to read /proc/self/map_files. Please use
50+
`--instrumentation-binpath <path-to-instrumented-binary>` option.")
5151
endif()
5252
endif()
5353

0 commit comments

Comments
 (0)