Andrew Kelley 6ab9268a90 stage2: re-use compiler runtime libs across opt modes and strip flag
Previously Zig would need to recompile runtime libs if you changed the
values of --strip or -O. Now, unless the `debug_compiler_runtime_libs`
flag is set (which is currently not exposed to the CLI), Zig will always
choose ReleaseFast or ReleaseSmall for compiler runtime libraries.

When the main application chooses ReleaseFast or ReleaseSmall, that
value is propagated to compiler runtime libraries. Otherwise a decision
is made based on the target, which is currently ReleaseSmall for
freestanding WebAssembly and ReleaseFast for everything else.

Ultimately the purpose of this commit is to have Debug and ReleaseSafe
builds of applications still get optimized builds of, e.g. libcxx and
libunwind, as well as to spend less time unnecessarily rebuilding compiler
runtime libraries.
2020-12-24 14:11:58 -07:00
..
2020-12-23 01:14:35 +11:00
2020-12-23 01:26:36 +02:00
2020-12-24 01:18:47 -07:00
2020-12-17 19:32:40 +01:00
2020-12-23 13:01:29 +02:00
2020-12-24 01:18:47 -07:00
2020-09-21 18:38:55 -07:00
2020-09-21 18:38:55 -07:00
2018-10-27 11:35:01 -04:00