llvm-project
0468efde - [libLTO] Apply late -mllvm options to the target options (#244090)

Commit
1 day ago
[libLTO] Apply late -mllvm options to the target options (#244090) lto_codegen_debug_options and lto_codegen_debug_options_array only record the options. They are parsed when the first output is produced, but the target options, including the MC options, are read from the library options when the generator is created. Options that ld64 passes with -mllvm, such as -macho-relocatable-dwarf or -nozero-initialized-in-bss, were parsed and then ignored. Read the target options again after the late options are parsed. lto_set_debug_options and thinlto_debug_options parse before the generator is created and are unchanged.
Parents
Loading