1 --- a/mesonbuild/compilers/mixins/clang.py
2 +++ b/mesonbuild/compilers/mixins/clang.py
3 @@ -56,10 +56,6 @@ class ClangCompiler(GnuLikeCompiler):
4 {OptionKey('b_colorout'), OptionKey('b_lto_threads'), OptionKey('b_lto_mode'), OptionKey('b_thinlto_cache'),
5 OptionKey('b_thinlto_cache_dir')})
7 - # TODO: this really should be part of the linker base_options, but
8 - # linkers don't have base_options.
9 - if isinstance(self.linker, AppleDynamicLinker):
10 - self.base_options.add(OptionKey('b_bitcode'))
11 # All Clang backends can also do LLVM IR
12 self.can_compile_suffixes.add('ll')
14 --- a/mesonbuild/linkers/linkers.py
15 +++ b/mesonbuild/linkers/linkers.py
16 @@ -785,7 +785,7 @@ class AppleDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker):
17 return self._apply_prefix('-headerpad_max_install_names')
19 def bitcode_args(self) -> T.List[str]:
20 - return self._apply_prefix('-bitcode_bundle')
21 + raise MesonException('Nixpkgs cctools does not support bitcode bundles')
23 def fatal_warnings(self) -> T.List[str]:
24 return self._apply_prefix('-fatal_warnings')