mirror-llvm-project/clang
Haowei a04f87fdd9
Reapply "Skipping host target exports during cross-compilation" (#210… (#210496)
This reverts commit 42eb7db188. This
reland 3fbb037d03 (#209922).

Under CMake 4+, calling add_library(... SHARED IMPORTED) on a target
platform that lacks dynamic linking support triggers a fatal error. This
becomes an issue when building LLVM and runtimes for baremetal targets
like armv6m-none-eabi. This patch adds the option
"LLVM_OMIT_EXPORTS_FROM_CONFIG" in LLVM. When used in sub builds like
LLVM runtimes, it makes CMake to skip including the LLVM and Clang
exports. This mitigates the CMake 4 errors on baremetal runtimes.

42eb7db188 originally
apply this flag on all runtimes build and causing issues on runtimes
like intel-sycl-gpu, amdgpu-offload-ubuntu-22-cmake-build-only.
This PR only set this flag when the target platform lacks shared library
support.
2026-07-20 10:47:59 -07:00
..
bindings [Clang] [Diagnostic] Extend DiagCompat() to C language modes (#209241) 2026-07-15 19:49:29 +00:00
cmake Reapply "Skipping host target exports during cross-compilation" (#210… (#210496) 2026-07-20 10:47:59 -07:00
docs [clang] improve diagnostics for enums (#204682) 2026-07-20 18:34:37 +02:00
examples [PassManager] Make passes inherit from RequiredPassInfoMixin/OptionalPassInfoMixin (#192120) 2026-05-06 10:00:07 -07:00
include [clang] improve diagnostics for enums (#204682) 2026-07-20 18:34:37 +02:00
lib [clang] improve diagnostics for enums (#204682) 2026-07-20 18:34:37 +02:00
runtime
test [clang] improve diagnostics for enums (#204682) 2026-07-20 18:34:37 +02:00
tools [Clang][OpenMP] Add parsing/sema for dims modifier in num_teams and thread_limit (#206412) 2026-07-19 00:13:57 -07:00
unittests [CIR] Introduce loop cleanup regions (#210212) 2026-07-17 16:24:58 -07:00
utils [clang][NFC] move traits to tablegen (#201491) 2026-07-20 06:50:22 -07:00
www [clang][ExprConst] Support virtual bases in C++26 (#204289) 2026-07-15 15:08:31 +02:00
.clang-format
.clang-tidy
.gitignore
AreaTeamMembers.txt
CMakeLists.txt Add build option CLANG_INCLUDE_EXAMPLES (#187317) 2026-07-11 04:27:34 +02:00
INSTALL.txt
LICENSE.TXT
Maintainers.md Nominate Joshua Cranmer as floating-point maintainer (#198287) 2026-05-18 10:53:29 -04:00
NOTES.txt
README.md

C language Family Front-end

Welcome to Clang.

This is a compiler front-end for the C family of languages (C, C++ and Objective-C) which is built as part of the LLVM compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things beyond just compiling code: we intend for Clang to be host to a number of different source-level tools. One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read the relevant websites. Here are some pointers: