Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 } | 8 } |
| 9 if (is_posix) { | 9 if (is_posix) { |
| 10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 294 cflags += [ | 294 cflags += [ |
| 295 "-fPIC", | 295 "-fPIC", |
| 296 "-pipe", # Use pipes for communicating between sub-processes. Faster. | 296 "-pipe", # Use pipes for communicating between sub-processes. Faster. |
| 297 ] | 297 ] |
| 298 | 298 |
| 299 ldflags += [ | 299 ldflags += [ |
| 300 "-fPIC", | 300 "-fPIC", |
| 301 "-Wl,-z,noexecstack", | 301 "-Wl,-z,noexecstack", |
| 302 "-Wl,-z,now", | 302 "-Wl,-z,now", |
| 303 "-Wl,-z,relro", | 303 "-Wl,-z,relro", |
| 304 "-Wl,-z,defs", | |
|
Nico
2015/01/15 23:35:07
Did you try an android build?
| |
| 304 ] | 305 ] |
| 305 } | 306 } |
| 306 | 307 |
| 307 # Linux-specific compiler flags setup. | 308 # Linux-specific compiler flags setup. |
| 308 # ------------------------------------ | 309 # ------------------------------------ |
| 309 if (is_linux) { | 310 if (is_linux) { |
| 310 cflags += [ "-pthread" ] | 311 cflags += [ "-pthread" ] |
| 311 ldflags += [ "-pthread" ] | 312 ldflags += [ "-pthread" ] |
| 312 } | 313 } |
| 313 if (use_gold) { | 314 if (use_gold) { |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 986 cflags += [ "-gsplit-dwarf" ] | 987 cflags += [ "-gsplit-dwarf" ] |
| 987 } | 988 } |
| 988 } | 989 } |
| 989 } | 990 } |
| 990 | 991 |
| 991 config("no_symbols") { | 992 config("no_symbols") { |
| 992 if (!is_win) { | 993 if (!is_win) { |
| 993 cflags = [ "-g0" ] | 994 cflags = [ "-g0" ] |
| 994 } | 995 } |
| 995 } | 996 } |
| OLD | NEW |