From: LLVM Packaging Team Date: Wed, 18 Dec 2024 09:01:43 +0000 (+0100) Subject: bolt-disable-proc-check X-Git-Tag: archive/raspbian/1%19.1.7-1+rpi1^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=95d4a6ab06a86e008bb12d7b8c4d987fcf8e47ff;p=llvm-toolchain-19.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 74907ad118..228b61b5c8 100644 --- a/bolt/CMakeLists.txt +++ b/bolt/CMakeLists.txt @@ -42,16 +42,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) - message(WARNING - "BOLT runtime may not be able to read /proc/self/map_files. Please use - `--instrumentation-binpath ` option.") - endif() -endif() set(BOLT_CLANG_EXE "" CACHE FILEPATH "Path to clang executable for the target \ architecture for use in BOLT tests")