Skip to content

Commit

Permalink
Make it an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mspang committed Feb 17, 2021
1 parent f85a62b commit 1164723
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ config("no_unwind_tables") {
}

config("unwind_tables_default") {
if (current_os == "android") {
configs = [ ":unwind_tables" ]
} else {
if (exclude_unwind_tables) {
configs = [ ":no_unwind_tables" ]
} else {
configs = [ ":unwind_tables" ]
}
}

Expand Down
3 changes: 3 additions & 0 deletions build/config/compiler/compiler.gni
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ declare_args() {

# Enable position independent executables (-pie).
enable_pie = current_os == "linux"

# Remove unwind tables from the binary to save space.
exclude_unwind_tables = current_os != "android"
}

0 comments on commit 1164723

Please sign in to comment.