| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |