| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index d6392d1df7b2618bd3a7ba5a86129f039aa9babb..e5cd25ada1d8199bbff60a40aa666015cfc44a26 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -481,7 +481,7 @@ config("compiler") {
|
| # TODO(pcc): Make this conditional on is_official_build rather than on gn
|
| # flags for specific features.
|
| if (!is_debug && (allow_posix_link_time_opt || is_cfi) && !is_nacl) {
|
| - assert(use_lld || is_chromeos, "gold plugin only supported with ChromeOS")
|
| + assert(use_lld || target_os == "chromeos", "gold plugin only supported with ChromeOS")
|
|
|
| if (use_thin_lto) {
|
| cflags += [ "-flto=thin" ]
|
|
|