commit | aa2a5abff7b3c7790f4863abae504f3cd426b35b | [log] [tgz] |
---|---|---|
author | Christian Ulmann <christian.ulmann@nextsilicon.com> | Fri Mar 01 16:50:30 2024 +0000 |
committer | Christian Ulmann <christian.ulmann@nextsilicon.com> | Fri Mar 01 16:50:30 2024 +0000 |
tree | e23d20e1aadea9742196cc6b3abb1715286775e7 | |
parent | dca32a3b594b3c91f9766a9312b5d82534910fa1 [diff] |
[CMake][ASAN] Add support for ADDRESS_SANITIZER_BUILD compile option This commit introduces the `LLVM_ADDRESS_SANITIZER_BUILD` compile option that is set to indicate if LLVM has been built with ASAN enabled or not. This is a necessary addition to properly control the declarations of `__asan_*` helpers in header files. Previously, some of these declarations relied on `__has_feature(address_sanitizer)`, which can lead to differences between in-tree compilation units and down-stream usages of the same headers. The reproducer of this issue involved templates, which then lead to violation of the ODR due to having two different instances of the same template.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.