[scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on
authorAlfred Persson Forsberg <cat@catcream.org>
Thu, 15 Jun 2023 23:08:57 +0000 (00:08 +0100)
committerSam James <sam@gentoo.org>
Thu, 15 Jun 2023 23:09:39 +0000 (00:09 +0100)
commit63eb7c4e6620279c63bd42d13177a94928cabb3c
tree4436b541f336fa3b4df1b19e8c707eaa917f90d1
parent0cbbfb8c2e03275e2f67e4f953693601785069a4
[scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on

Temporary hack until LLVM libc supports inttypes.h print format macros

timing.h uses the PRId64 macro which is not included in llvm libc yet

Bug: https://github.com/llvm/llvm-project/issues/63317

Reviewed By: michaelrj, thesamesam, Chia-hungDuan

Differential Revision: https://reviews.llvm.org/D152979
compiler-rt/lib/scudo/standalone/CMakeLists.txt
compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt