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

Side by Side Diff: runtime/bin/BUILD.gn

Issue 2967673002: Restore -rdynamic in Product mode build (Closed)
Patch Set: Created 3 years, 5 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) 2014, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 import("gypi_contents.gni") 5 import("gypi_contents.gni")
6 import("../runtime_args.gni") 6 import("../runtime_args.gni")
7 import("../../build/compiled_action.gni") 7 import("../../build/compiled_action.gni")
8 8
9 declare_args() { 9 declare_args() {
10 # Controls the kind of core snapshot linked into the standalone VM. Using a 10 # Controls the kind of core snapshot linked into the standalone VM. Using a
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 ] + extra_sources 653 ] + extra_sources
654 654
655 include_dirs = [ 655 include_dirs = [
656 "..", 656 "..",
657 "//third_party", 657 "//third_party",
658 ] 658 ]
659 659
660 if (is_win) { 660 if (is_win) {
661 ldflags = [ "/EXPORT:Dart_True" ] 661 ldflags = [ "/EXPORT:Dart_True" ]
662 } else { 662 } else {
663 if (dart_runtime_mode != "release") { 663 # Adds all symbols to the dynamic symbol table, not just used ones.
664 ldflags = [ "-rdynamic" ] 664 # This is needed to make native extensions work.
665 } 665 ldflags = [ "-rdynamic" ]
666 } 666 }
667 667
668 if (is_win) { 668 if (is_win) {
669 libs = [ 669 libs = [
670 "iphlpapi.lib", 670 "iphlpapi.lib",
671 "psapi.lib", 671 "psapi.lib",
672 "ws2_32.lib", 672 "ws2_32.lib",
673 "Rpcrt4.lib", 673 "Rpcrt4.lib",
674 "winmm.lib", 674 "winmm.lib",
675 ] 675 ]
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 ] 953 ]
954 if (is_linux || is_android) { 954 if (is_linux || is_android) {
955 cflags = [ "-fPIC" ] 955 cflags = [ "-fPIC" ]
956 } 956 }
957 if (is_win) { 957 if (is_win) {
958 libs = [ "dart.lib" ] 958 libs = [ "dart.lib" ]
959 abs_root_out_dir = rebase_path(root_out_dir) 959 abs_root_out_dir = rebase_path(root_out_dir)
960 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] 960 ldflags = [ "/LIBPATH:$abs_root_out_dir" ]
961 } 961 }
962 } 962 }
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