-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Stop using the system compiler-rt libraries and headers #91475
Description
Company or project name
CH
Describe the problem
We now have the option to build compiler-rt as necessary. Currently it's behind a flag USE_SYSTEM_COMPILER_RT=0 or built when we cannot find the libraries themselves.
For headers, such as xray/xray_interface.h or <sanitizer/msan_interface.h> we are still relying on the ones provided by the compiler in the system.
This causes issues: #89173 (comment) / #91452
Instead we could move away completely from compiler provided builtins and always build and use our own, both for libraries and headers.
As part of this we could try to integrate the build of those libraries into our own cmake directly, instead of using an external cmake call to build them, if it's not too hard / complex to make and maintain.
Operating system
Linux / FreeBSD
CMake version
No response
Ninja version
No response
Compiler name and version
No response
Full cmake and/or ninja output with the error
.