Skip to content

Commit 9f86038

Browse files
aaupovchencha3
authored andcommitted
[BOLT][CMake] Build rt library despite unreadable map_files (llvm#77876)
Emit a warning and print a suggested workaround. Fixes llvm#77822.
1 parent da7d11a commit 9f86038

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)