Index: build/config/mac/BUILD.gn |
diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn |
index af1fbbc092b050f00ac80637df0d2ecc688ebd28..56e101cee713f3350170e5aeb007afe882bab157 100644 |
--- a/build/config/mac/BUILD.gn |
+++ b/build/config/mac/BUILD.gn |
@@ -24,16 +24,16 @@ config("compiler") { |
"-arch", |
"i386", |
] |
- } else if (current_cpu == "arm") { |
- # TODO(GYP): we may need to distinguish between "arm64", "armv7", |
- # and "armv7s" for iOS, and hence need multiple current_cpu values |
- # rather than just "arm". |
+ } else if (current_cpu == "armv7" || current_cpu == "arm") { |
common_mac_flags += [ |
"-arch", |
- "arm64", |
- "-arch", |
"armv7", |
] |
+ } else if (current_cpu == "arm64") { |
+ common_mac_flags += [ |
+ "-arch", |
+ "arm64", |
+ ] |
} |
asmflags = common_mac_flags |