Remove more code by the patch

This commit is contained in:
Mikhail Novosyolov 2018-10-21 22:15:24 +03:00
parent 9cd832f8e9
commit 102894ec41

View file

@ -69,4 +69,14 @@ Author: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level") assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level")
if (symbol_level == -1) { if (symbol_level == -1) {
--- a/build/config/compiler/BUILD.gn 2018-10-21 01:41:30.065502783 +0300
+++ b/build/config/compiler/BUILD.gn 2018-10-21 21:33:10.465382423 +0300
@@ -588,8 +588,6 @@
# TODO(pcc): Make this conditional on is_official_build rather than on gn
# flags for specific features.
if (!is_debug && use_thin_lto && current_toolchain == default_toolchain) {
- assert(use_lld, "gold plugin cannot be used with lld linker")
-
cflags += [ "-flto=thin" ]
# Limit the size of the ThinLTO cache to the lesser of 10% of available disk