Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 810563008: (Temporarily) disable -Wl,-z,defs when using sanitizers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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",
305 ] 304 ]
305 if (!using_sanitizer) {
306 ldflags += [ "-Wl,-z,defs" ]
307 }
306 } 308 }
307 309
308 # Linux-specific compiler flags setup. 310 # Linux-specific compiler flags setup.
309 # ------------------------------------ 311 # ------------------------------------
310 if (is_linux) { 312 if (is_linux) {
311 cflags += [ "-pthread" ] 313 cflags += [ "-pthread" ]
312 ldflags += [ "-pthread" ] 314 ldflags += [ "-pthread" ]
313 } 315 }
314 if (use_gold) { 316 if (use_gold) {
315 gold_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", 317 gold_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin",
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 cflags += [ "-gsplit-dwarf" ] 989 cflags += [ "-gsplit-dwarf" ]
988 } 990 }
989 } 991 }
990 } 992 }
991 993
992 config("no_symbols") { 994 config("no_symbols") {
993 if (!is_win) { 995 if (!is_win) {
994 cflags = [ "-g0" ] 996 cflags = [ "-g0" ]
995 } 997 }
996 } 998 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698