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

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

Issue 2507333002: Add the possibility to build with PGO when using Clang (Closed)
Patch Set: Created 4 years, 1 month 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
« build/config/pgo/BUILD.gn ('K') | « build/config/pgo/pgo.gni ('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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 # undefined references left. 595 # undefined references left.
596 "-Wl,--no-undefined", 596 "-Wl,--no-undefined",
597 597
598 # Silence the warning about the unused '-pthread' argument. 598 # Silence the warning about the unused '-pthread' argument.
599 # TODO(gn): Come up with a way to remove the -pthread flag instead. 599 # TODO(gn): Come up with a way to remove the -pthread flag instead.
600 "-Qunused-arguments", 600 "-Qunused-arguments",
601 ] 601 ]
602 defines = [ "NACL_LINUX=1" ] 602 defines = [ "NACL_LINUX=1" ]
603 include_dirs = [ "../../../.." ] 603 include_dirs = [ "../../../.." ]
604 604
605 # Do not use PGO, which requires a few symbols.
606 configs -= [ "//build/config/pgo:default_pgo_flags" ]
Sébastien Marchand 2016/11/17 17:31:15 Again, I'll do the opposite, include it when you n
607
605 # Do not use any sanitizers tools, which require a few symbols. 608 # Do not use any sanitizers tools, which require a few symbols.
606 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] 609 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ]
607 configs += [ ":nonsfi_libc_free_nexe_config" ] 610 configs += [ ":nonsfi_libc_free_nexe_config" ]
608 } 611 }
609 612
610 copy("nonsfi_libc_free") { 613 copy("nonsfi_libc_free") {
611 sources = [ 614 sources = [
612 "${root_out_dir}/libc_free_${arch}.nexe", 615 "${root_out_dir}/libc_free_${arch}.nexe",
613 616
614 # TODO(ncbray) move into chrome/test/data/nacl when all tests are 617 # TODO(ncbray) move into chrome/test/data/nacl when all tests are
615 # converted. 618 # converted.
616 "//ppapi/native_client/tools/browser_tester/browserdata/nacltest.js", 619 "//ppapi/native_client/tools/browser_tester/browserdata/nacltest.js",
617 "nonsfi/irt_test.html", 620 "nonsfi/irt_test.html",
618 "nonsfi/libc_free.html", 621 "nonsfi/libc_free.html",
619 "nonsfi/libc_free.nmf", 622 "nonsfi/libc_free.nmf",
620 ] 623 ]
621 outputs = [ 624 outputs = [
622 "${root_build_dir}/nacl_test_data/libc-free/{{source_file_part}}", 625 "${root_build_dir}/nacl_test_data/libc-free/{{source_file_part}}",
623 ] 626 ]
624 deps = [ 627 deps = [
625 ":nonsfi_libc_free_nexe", 628 ":nonsfi_libc_free_nexe",
626 ] 629 ]
627 } 630 }
628 } 631 }
OLDNEW
« build/config/pgo/BUILD.gn ('K') | « build/config/pgo/pgo.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698