From: LLVM Packaging Team Date: Sat, 5 Apr 2025 20:24:44 +0000 (+0200) Subject: bolt-disable-proc-check X-Git-Tag: archive/raspbian/1%18.1.8-18+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fa5cb8480e9bfd76f8670325cb1edf7a284744a8;p=llvm-toolchain-18.git bolt-disable-proc-check bolt: Disable the check for /proc/self/map_files. Might not be available on build machines Gbp-Pq: Name bolt-disable-proc-check.diff --- diff --git a/bolt/CMakeLists.txt b/bolt/CMakeLists.txt index f163d45342..4d62f2b9ef 100644 --- a/bolt/CMakeLists.txt +++ b/bolt/CMakeLists.txt @@ -40,16 +40,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) - set(BOLT_ENABLE_RUNTIME OFF) - message(WARNING - "BOLT runtime is disabled as /proc/self/map_files is unreadable.") - endif() -endif() set(BOLT_CLANG_EXE "" CACHE FILEPATH "Path to clang executable for the target \ architecture for use in BOLT tests")