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

Side by Side Diff: tools/testing/dart/compiler_configuration.dart

Issue 2858623002: Remove MIPS support (Closed)
Patch Set: Rebase Created 3 years, 6 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
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 library compiler_configuration; 5 library compiler_configuration;
6 6
7 import 'dart:io' show Platform; 7 import 'dart:io' show Platform;
8 8
9 import 'runtime_configuration.dart' show RuntimeConfiguration; 9 import 'runtime_configuration.dart' show RuntimeConfiguration;
10 import 'runtime_configuration.dart' show DartPrecompiledAdbRuntimeConfiguration; 10 import 'runtime_configuration.dart' show DartPrecompiledAdbRuntimeConfiguration;
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 714
715 String cc_flags; 715 String cc_flags;
716 if (arch == 'x64') { 716 if (arch == 'x64') {
717 cc_flags = "-m64"; 717 cc_flags = "-m64";
718 } else if (arch == 'simarm64') { 718 } else if (arch == 'simarm64') {
719 cc_flags = "-m64"; 719 cc_flags = "-m64";
720 } else if (arch == 'ia32') { 720 } else if (arch == 'ia32') {
721 cc_flags = "-m32"; 721 cc_flags = "-m32";
722 } else if (arch == 'simarm') { 722 } else if (arch == 'simarm') {
723 cc_flags = "-m32"; 723 cc_flags = "-m32";
724 } else if (arch == 'simmips') {
725 cc_flags = "-m32";
726 } else if (arch == 'arm') { 724 } else if (arch == 'arm') {
727 cc_flags = null; 725 cc_flags = null;
728 } else if (arch == 'arm64') { 726 } else if (arch == 'arm64') {
729 cc_flags = null; 727 cc_flags = null;
730 } else if (arch == 'mips') {
731 cc_flags = "-EL";
732 } else { 728 } else {
733 throw "Architecture not supported: $arch"; 729 throw "Architecture not supported: $arch";
734 } 730 }
735 731
736 var exec = cc; 732 var exec = cc;
737 var args = <String>[]; 733 var args = <String>[];
738 if (cc_flags != null) args.add(cc_flags); 734 if (cc_flags != null) args.add(cc_flags);
739 if (ld_flags != null) args.add(ld_flags); 735 if (ld_flags != null) args.add(ld_flags);
740 args.add(shared); 736 args.add(shared);
741 args.add('-nostdlib'); 737 args.add('-nostdlib');
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 RuntimeConfiguration runtimeConfiguration, 952 RuntimeConfiguration runtimeConfiguration,
957 String buildDir, 953 String buildDir,
958 TestInformation info, 954 TestInformation info,
959 List<String> vmOptions, 955 List<String> vmOptions,
960 List<String> sharedOptions, 956 List<String> sharedOptions,
961 List<String> originalArguments, 957 List<String> originalArguments,
962 CommandArtifact artifact) { 958 CommandArtifact artifact) {
963 return <String>[]; 959 return <String>[];
964 } 960 }
965 } 961 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698