zig/tools
Andrew Kelley 0d4b6ac741 add LTO support
The CLI gains -flto and -fno-lto options to override the default.
However, the cool thing about this is that the defaults are great! In
general when you use build-exe in release mode, Zig will enable LTO if
it would work and it would help.

zig cc supports detecting and honoring the -flto and -fno-lto flags as
well. The linkWithLld functions are improved to all be the same with
regards to copying the artifact instead of trying to pass single objects
through LLD with -r. There is possibly a future improvement here as
well; see the respective TODOs.

stage1 is updated to support outputting LLVM bitcode instead of machine
code when lto is enabled. This allows LLVM to optimize across the Zig and
C/C++ code boundary.

closes #2845
2021-01-23 18:18:07 -07:00
..
gen_stubs.zig stage2: use %type not @type for libc stubs 2021-01-18 11:04:33 -08:00
merge_anal_dumps.zig
process_headers.zig
update_clang_options.zig add LTO support 2021-01-23 18:18:07 -07:00
update_glibc.zig Reduce use of deprecated IO types 2021-01-07 23:48:58 -08:00
zig_gdb_pretty_printers.py gdb pretty printers for slices and optionals 2020-12-23 20:21:47 +02:00
zig-gdb.py gdb pretty printers for slices and optionals 2020-12-23 20:21:47 +02:00