Unlike the other compiler-rt unit tests MemProf was not using the `generate_compiler_rt_tests()` helper that ensures the test is compiled using the test compiler (generally the Clang binary built earlier). This was exposed by https://github.com/llvm/llvm-project/pull/83088 because it started adding Clang-specific flags to COMPILER_RT_UNITTEST_CFLAGS if the compiler ID matched "Clang". This change should fix the buildbots that compile compiler-rt using a GCC compiler with LLVM_ENABLE_PROJECTS=compiler-rt. Reviewed By: vitalybuka Pull Request: https://github.com/llvm/llvm-project/pull/88074
MemProfiling RT
================================
This directory contains sources of the MemProfiling (MemProf) runtime library.
Directory structure:
README.txt : This file.
CMakeLists.txt : File for cmake-based build.
memprof_*.{cc,h} : Sources of the memprof runtime library.
Also MemProf runtime needs the following libraries:
lib/interception/ : Machinery used to intercept function calls.
lib/sanitizer_common/ : Code shared between various sanitizers.
MemProf runtime can only be built by CMake. You can run MemProf tests
from the root of your CMake build tree:
make check-memprof