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

Side by Side Diff: chrome/test/data/nacl/BUILD.gn

Issue 2891513002: build: Remove build system support for gold plugin. (Closed)
Patch Set: Rebase on trunk Created 3 years, 7 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 | « build/config/compiler/BUILD.gn ('k') | 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
7 import("//build/toolchain/toolchain.gni") 7 import("//build/toolchain/toolchain.gni")
8 import("//ppapi/native_client/nacl_test_data.gni") 8 import("//ppapi/native_client/nacl_test_data.gni")
9 9
10 group("nacl") { 10 group("nacl") {
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 # Workaround against LLVM bug. 558 # Workaround against LLVM bug.
559 # In short, an LTO optimization pass might recognize 559 # In short, an LTO optimization pass might recognize
560 # naive implementations of builtins (such as memset) 560 # naive implementations of builtins (such as memset)
561 # and replace them with references to the real builtins, 561 # and replace them with references to the real builtins,
562 # which, in the case of -nostdlib, might cause the binary 562 # which, in the case of -nostdlib, might cause the binary
563 # to get undefined references to those symbols. 563 # to get undefined references to those symbols.
564 # 564 #
565 # See more details: 565 # See more details:
566 # https://llvm.org/bugs/show_bug.cgi?id=30403 566 # https://llvm.org/bugs/show_bug.cgi?id=30403
567 if (use_thin_lto) { 567 if (use_thin_lto) {
568 if (use_lld) { 568 ldflags = [ "-Wl,--lto-O0" ]
569 ldflags = [ "-Wl,--lto-O0" ]
570 } else {
571 ldflags = [ "-Wl,-plugin-opt,O0" ]
572 }
573 } 569 }
574 } 570 }
575 571
576 executable("nonsfi_libc_free_nexe") { 572 executable("nonsfi_libc_free_nexe") {
577 output_name = "libc_free_$arch" 573 output_name = "libc_free_$arch"
578 output_extension = "nexe" 574 output_extension = "nexe"
579 sources = [ 575 sources = [
580 "nonsfi/libc_free.c", 576 "nonsfi/libc_free.c",
581 ] 577 ]
582 578
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 "nonsfi/libc_free.nmf", 619 "nonsfi/libc_free.nmf",
624 ] 620 ]
625 outputs = [ 621 outputs = [
626 "${root_build_dir}/nacl_test_data/libc-free/{{source_file_part}}", 622 "${root_build_dir}/nacl_test_data/libc-free/{{source_file_part}}",
627 ] 623 ]
628 deps = [ 624 deps = [
629 ":nonsfi_libc_free_nexe", 625 ":nonsfi_libc_free_nexe",
630 ] 626 ]
631 } 627 }
632 } 628 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698