You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change implements the following flags and provides the
infrastructure for future additions:
bazel query 'kind(".*_flag", @llvm-project//llvm/config:all)'
@llvm-project//llvm/config:LLVM_ENABLE_BACKTRACES
@llvm-project//llvm/config:LLVM_ENABLE_CRASH_DUMPS
@llvm-project//llvm/config:LLVM_ENABLE_CRASH_OVERRIDES
@llvm-project//llvm/config:LLVM_ENABLE_DEBUGLOC_COVERAGE_TRACKING
@llvm-project//llvm/config:LLVM_ENABLE_PLUGINS
@llvm-project//llvm/config:LLVM_ENABLE_ZLIB
@llvm-project//llvm/config:LLVM_ENABLE_ZSTD
@llvm-project//llvm/config:LLVM_HAS_LOGF128
@llvm-project//llvm/config:LLVM_WINDOWS_PREFER_FORWARD_SLASH
For instance:
bazel build ... \
--@llvm-project//llvm/config:LLVM_ENABLE_BACKTRACES=false
The following flags have been moved to mirror CMake and simplify
migration to bzlmod:
@llvm_zlib//:llvm_enable_zlib
-> @llvm-project//llvm/config:LLVM_ENABLE_ZLIB
@llvm_zstd//:llvm_enable_zstd
-> @llvm-project//llvm/config:LLVM_ENABLE_ZSTD
The overlay now has platform definitions at `@llvm-project//platform`.
You can use these to cross compile the config headers to see how they'd
look like on other systems. For instance:
bazel build @llvm-project//llvm:config_h \
--platforms=@llvm-project//platform:aarch64-unknown-linux-gnu
bazel build @llvm-project//llvm:llvm-config_h \
--platforms=@llvm-project//platform:x86_64-pc-win32
The new implementation uses the original CMake templates as source of
truth. This makes it easier to detect and prevent drift as unhandled
substitutions tend to turn into compiler errors.
Saves 16 defines on windows and ~35 defines on other platforms which
previously leaked into the command lines of all targets that depended
transitively on the llvm configuration. For a full build of the overlay
this amounts to ~380k fewer defines.
0 commit comments