]> granicus.if.org Git - llvm/commit
[gn build] Separate debug and optimization settings
authorDavid Major <dmajor@mozilla.com>
Tue, 12 Feb 2019 22:24:45 +0000 (22:24 +0000)
committerDavid Major <dmajor@mozilla.com>
Tue, 12 Feb 2019 22:24:45 +0000 (22:24 +0000)
commite126f1baea2bbf17a27e782305f0a80e66b919a9
tree7646cfaff88ade4d7f577729f197353ebd1b8709
parent4499765b6a914aecfbe2daf0a04518afb9764c18
[gn build] Separate debug and optimization settings

This patch adds an `is_optimized` variable, orthogonal to `is_debug`, to allow for a gn analogue to `RelWithDebInfo` builds.

As part of this we'll want to explicitly enable GC+ICF, for the sake of `is_debug && is_optimized` builds. The flags normally default to true except that if you pass `/DEBUG` they default to false.

Differential Revision: https://reviews.llvm.org/D58075

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353888 91177308-0d34-0410-b5e6-96231b3b80d8
utils/gn/build/BUILD.gn
utils/gn/build/buildflags.gni