@@ -590,8 +590,6 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration
590
590
591
591
bool get _isArm64 => _configuration.architecture == Architecture .arm64;
592
592
593
- bool get _isSimArm64 => _configuration.architecture == Architecture .simarm64;
594
-
595
593
bool get _isX64 => _configuration.architecture == Architecture .x64;
596
594
597
595
bool get _isIA32 => _configuration.architecture == Architecture .ia32;
@@ -705,12 +703,12 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration
705
703
Command computeAssembleCommand (String tempDir, List arguments,
706
704
Map <String , String > environmentOverrides) {
707
705
String cc, shared, ldFlags;
708
- if (_isAndroid || _isSimArm || _isSimArm64 ) {
706
+ if (_isAndroid) {
709
707
var ndk = "third_party/android_tools/ndk" ;
710
708
String triple;
711
- if (_isArm || _isSimArm ) {
709
+ if (_isArm) {
712
710
triple = "arm-linux-androideabi" ;
713
- } else if (_isArm64 || _isSimArm64 ) {
711
+ } else if (_isArm64) {
714
712
triple = "aarch64-linux-android" ;
715
713
}
716
714
String host;
@@ -722,7 +720,11 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration
722
720
cc = "$ndk /toolchains/$triple -4.9/prebuilt/$host -x86_64/bin/$triple -gcc" ;
723
721
shared = '-shared' ;
724
722
} else if (Platform .isLinux) {
725
- cc = 'gcc' ;
723
+ if (_isSimArm) {
724
+ cc = 'arm-linux-gnueabihf-gcc' ;
725
+ } else {
726
+ cc = 'gcc' ;
727
+ }
726
728
shared = '-shared' ;
727
729
} else if (Platform .isMacOS) {
728
730
cc = 'clang' ;
0 commit comments