From 1918d4bcb21af6a7e4de32073455ac51f2f9673f Mon Sep 17 00:00:00 2001 From: Amir Ayupov Date: Wed, 20 Mar 2024 16:00:11 -0700 Subject: [PATCH] [BOLT][CMake] Build rt library despite unreadable map_files (#77876) Emit a warning and print a suggested workaround. Fixes https://github.com/llvm/llvm-project/issues/77822. --- bolt/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bolt/CMakeLists.txt b/bolt/CMakeLists.txt index f163d45342874..cc3a70fa35e0a 100644 --- a/bolt/CMakeLists.txt +++ b/bolt/CMakeLists.txt @@ -45,9 +45,9 @@ if (BOLT_ENABLE_RUNTIME) execute_process(COMMAND ls /proc/self/map_files RESULT_VARIABLE LS OUTPUT_QUIET ERROR_QUIET) if (LS) - set(BOLT_ENABLE_RUNTIME OFF) message(WARNING - "BOLT runtime is disabled as /proc/self/map_files is unreadable.") + "BOLT runtime may not be able to read /proc/self/map_files. Please use + `--instrumentation-binpath ` option.") endif() endif()