mirror-llvm-project/llvm/tools
Nikita Popov 2b6bdfc82b [cmake] Restore exception flags in llvm-config --cxxflags (#176195)
https://github.com/llvm/llvm-project/pull/173869 accidentally dropped
rtti and eh flags from `llvm-config --cxxflags`. Then
https://github.com/llvm/llvm-project/pull/174084 restored the rtti
flags. The eh flags were not included with the rationale that they are
not ABI relevant.

This PR restores the eh flags as well. While they are not strictly
necessary, I believe that code that directly interfaces with LLVM almost
certainly does not want to build with exceptions if LLVM is not built
with exceptions. Building in the peculiar `-fexceptions -fno-rtti`
configuration is rarely useful and likely not intended.

On MacOS, this is also relevant because it's not possible to use C++17
headers without `-fno-exceptions` when using older deployment targets.
In that configuration, `-fno-exceptions` is required to interact with
LLVM.

(cherry picked from commit 9bbea753a4)
2026-01-19 10:00:45 +00:00
..
bugpoint [LLVM][NFC] Move PassPlugin from Passes to separate library 2025-12-22 18:11:34 +01:00
bugpoint-passes [CMake][NFC] Don't use uninitialized LLVM_REQUIRES_* (#175554) 2026-01-12 16:13:20 +00:00
dsymutil [dsymutil] Add new argument allow_invalid_macho (#173503) 2026-01-10 17:06:23 +00:00
dxil-dis
gold [LLVM][ADT] Migrate users of make_scope_exit to CTAD (#174030) 2026-01-02 20:42:56 -08:00
llc [LLVM][ADT] Migrate users of make_scope_exit to CTAD (#174030) 2026-01-02 20:42:56 -08:00
lli [lli] Honor --jit-linker-kind=rtdyld on platforms that default to jitlink (#167860) 2025-12-18 13:53:31 +01:00
llvm-ar [CommandLine] Use DenseMap instead of StringMap (NFC) (#174988) 2026-01-09 15:22:28 +01:00
llvm-as Move the preserve-{bc,ll}-uselistorder options out of individual tools, make them global defaults for AsmWriter and BitcodeWriter (#160079) 2025-10-11 09:19:50 +08:00
llvm-as-fuzzer
llvm-bcanalyzer
llvm-c-test [llvm-c] Deprecate functions working on the global context (#163979) 2025-12-08 08:29:48 +00:00
llvm-cas [CAS] Add llvm-cas tools to inspect on-disk LLVMCAS (#166481) 2025-11-07 10:32:55 -08:00
llvm-cat
llvm-cfi-verify Remove unused <set> and <map> inclusion (#167175) 2025-11-09 15:15:21 +00:00
llvm-cgdata llvm: Export IndexedCodeGenDataLazyLoading (#169563) 2025-12-15 04:25:30 -05:00
llvm-config [cmake] Restore exception flags in llvm-config --cxxflags (#176195) 2026-01-19 10:00:45 +00:00
llvm-cov [llvm-cov] Use a range-based for loop (NFC) (#168671) 2025-11-19 08:48:24 -08:00
llvm-ctxprof-util
llvm-cvtres
llvm-cxxdump
llvm-cxxfilt
llvm-cxxmap
llvm-debuginfo-analyzer [llvm-debuginfo-analyzer] Add --output-sort=(none|id) option (#145761) 2025-09-19 12:44:52 +02:00
llvm-debuginfod Reverts recent debuginfod patches (#156532) 2025-09-02 14:22:42 -07:00
llvm-debuginfod-find
llvm-diff Remove unused <utility> inclusion 2025-11-11 13:33:33 +01:00
llvm-dis [NFC][LLVM] Minor namespace cleanup in llvm-dis.cpp (#175254) 2026-01-12 09:58:59 -08:00
llvm-dis-fuzzer
llvm-dlang-demangle-fuzzer
llvm-driver
llvm-dwarfdump [llvm-dwarfdump][CMake] Link against BinaryFormat (#166364) 2025-11-04 13:11:52 +00:00
llvm-dwarfutil Reapply "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (#145959) (#146112) 2025-06-27 11:05:49 -07:00
llvm-dwp Modify llvm-dwp to be able to emit string tables over 4GB without losing data (#167457) 2025-11-18 11:32:23 -08:00
llvm-exegesis [NFC][LLVM] Adopt ListSeparator/interleaved in more places (#172909) 2026-01-12 12:18:01 -08:00
llvm-extract Move the preserve-{bc,ll}-uselistorder options out of individual tools, make them global defaults for AsmWriter and BitcodeWriter (#160079) 2025-10-11 09:19:50 +08:00
llvm-gpu-loader Remove unused standard headers: <string>, <optional>, <numeric>, <tuple> (#167232) 2025-11-10 12:17:12 +00:00
llvm-gsymutil Don't warn about missing DWO files when converting mach-o files. (#152598) 2025-10-14 11:41:18 -07:00
llvm-ifs Remove unused <set> and <map> inclusion (#167175) 2025-11-09 15:15:21 +00:00
llvm-ir2vec [NFC][LLVM] Namespace cleanup in llvm-ir2vec.cpp (#175252) 2026-01-12 09:58:33 -08:00
llvm-isel-fuzzer
llvm-itanium-demangle-fuzzer
llvm-jitlink [llvm-jitlink] Make -show-addrs work without -check, fix fallout. (#175491) 2026-01-13 00:13:12 +11:00
llvm-jitlistener
llvm-libtool-darwin [llvm] Use "= default" (NFC) (#166088) 2025-11-02 17:16:47 -08:00
llvm-link [ThinLTO] Make SummaryList private (NFC) (#164355) 2025-10-21 06:53:40 -07:00
llvm-lipo Add parentheses to clarify operator ordering in asserts. NFC. (#159333) 2025-09-17 20:46:44 +03:00
llvm-lto Remove unused <set> and <map> inclusion (#167175) 2025-11-09 15:15:21 +00:00
llvm-lto2 [LLVM][ADT] Migrate users of make_scope_exit to CTAD (#174030) 2026-01-02 20:42:56 -08:00
llvm-mc [LLVM][ADT] Migrate users of make_scope_exit to CTAD (#174030) 2026-01-02 20:42:56 -08:00
llvm-mc-assemble-fuzzer [NFC] Add missing override on function. (#173701) 2026-01-10 16:16:55 -08:00
llvm-mc-disassemble-fuzzer
llvm-mca [MCA] Fix llvm-mca to skip input reading when -mcpu=help is specified (#174421) 2026-01-06 10:44:34 +00:00
llvm-microsoft-demangle-fuzzer
llvm-ml [support] Use VFS in SourceMgr for loading includes (#162903) 2025-10-15 09:24:36 -07:00
llvm-modextract
llvm-mt
llvm-nm [llvm-nm] Improve performance while faking symbols from function starts (#162755) 2025-10-11 20:45:47 -07:00
llvm-objcopy [ADT] Prepare to deprecate variadic StringSwitch::Cases. NFC. (#166020) 2025-11-02 00:12:33 +00:00
llvm-objdump [llvm-objdump][NFC] Use EnumEntry from Support (#174155) 2026-01-07 10:55:53 +01:00
llvm-offload-binary [Offload] Let binary utility take empty arguments (#162317) 2025-10-07 12:51:00 -05:00
llvm-offload-wrapper [llvm-offload-wrapper] Fix Triple and OpenMP handling (#167580) 2025-11-11 19:44:20 -06:00
llvm-opt-fuzzer
llvm-opt-report [llvm][support] Move make_absolute from sys::fs to sys::path (#161459) 2025-10-01 14:35:17 -07:00
llvm-pdbutil [llvm-pdbutil] Create DBI section headers in yaml2pdb (#166566) 2025-11-15 16:29:23 +01:00
llvm-profdata [LLVM][ADT] Migrate users of make_scope_exit to CTAD (#174030) 2026-01-02 20:42:56 -08:00
llvm-profgen [llvm-profgen] Fix warnings when building without asserts [NFC] 2025-12-04 11:45:12 +01:00
llvm-rc Remove unused <set> and <map> inclusion (#167175) 2025-11-09 15:15:21 +00:00
llvm-readobj Revert "[llvm-readobj] Dump callgraph section info for ELF" (#176221) 2026-01-16 07:33:05 +00:00
llvm-readtapi [llvm] Use "= default" (NFC) (#166088) 2025-11-02 17:16:47 -08:00
llvm-reduce llvm-reduce: Add pass to sink defs to uses (#170317) 2025-12-04 21:33:03 +01:00
llvm-remarkutil [CommandLine] Use DenseMap instead of StringMap (NFC) (#174988) 2026-01-09 15:22:28 +01:00
llvm-rtdyld MC: Add Triple overloads for more MC constructors (#157321) 2025-09-08 03:41:22 +00:00
llvm-rust-demangle-fuzzer
llvm-shlib llvm-shlib: Fix mingw dll exports (#148772) 2025-07-15 04:54:28 -04:00
llvm-sim
llvm-size [llvm-size] Add --exclude-pagezero option for Mach-O to exclude __PAGEZERO size. (#159574) 2025-09-29 09:32:28 -07:00
llvm-special-case-list-fuzzer
llvm-split MC: Use Triple form of lookupTarget in more places (#157591) 2025-09-09 16:33:39 +09:00
llvm-stress [llvm-stress] Allow implicit truncation 2026-01-07 14:16:42 +01:00
llvm-strings
llvm-symbolizer [llvm-symbolizer] Recognize and symbolize archive members (#150401) 2025-12-15 18:55:36 +05:30
llvm-tli-checker [Analysis] Move TargetLibraryInfo data to TableGen (#165009) 2025-11-19 16:05:00 -05:00
llvm-undname
llvm-xray [llvm] Use llvm::size (NFC) (#168675) 2025-11-19 07:29:57 -08:00
llvm-yaml-numeric-parser-fuzzer
llvm-yaml-parser-fuzzer
lto [libLTO] add thinlto caching flags to libLTO (#168567) 2025-11-19 10:19:24 -05:00
obj2yaml Implement a more seamless way to provide missing functions on z/OS (#167703) 2025-11-18 15:58:39 -05:00
opt [LLVM][NFC] Move PassPlugin from Passes to separate library 2025-12-22 18:11:34 +01:00
opt-viewer [opt-viewer] Account for optimization records YAML files generated by LTO (#135059) 2025-11-04 22:03:45 +00:00
reduce-chunk-list [OptBisect][ADT] Add support for running ranges of passes and introduce IntegerInclusiveInterval ADT (#152393) 2026-01-05 11:56:40 -08:00
remarks-shlib
sancov [sancov] Add -diff and -union options to compute set difference and union of sancov files (#171191) 2025-12-16 10:11:39 +00:00
sanstats
spirv-tools Reland "[mlir][spirv] Fix int type declaration duplication when serializing" (#145687) 2025-07-28 12:34:30 -04:00
verify-uselistorder [verify-uselistorder] Use llvm::is_sorted (NFC) (#145444) 2025-06-24 00:10:22 -07:00
vfabi-demangle-fuzzer
xcode-toolchain
yaml2obj [llvm][clang] Pass VFS to llvm::cl command line handling (#159174) 2025-09-18 14:53:40 -07:00
CMakeLists.txt