-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building for apple silicon #92
Comments
The biggest issue with this right now is that Flutter engine does not have official arm64 build for macOS. I opened issue for this here but there haven't been much progress. Technically you could build engine yourself from scratch, in which case you can build for arm64 and cross compile for intel (or vice versa) and build the nativeshell app with custom engine (arm64 for arm64 build, intel for intel build) and then lipo the resulting binaries together. I've done it locally, it's doable, but it's quite a lot of work to do. |
Building the engine locally is actually easier now compared to last year since Flutter team is actively working on publishing apple silicon engine and also because flutter beta channel already ships arm64 dart. Just follow these steps: https://github.com/flutter/flutter/wiki/Compiling-the-engine#compiling-for-macos-or-linux Remember to match kernel binary format version between the engine and flutter, for example for me
root: diff --git a/testing/testing.gni b/testing/testing.gni
index 4fd02403aa..40ca7afb39 100644
--- a/testing/testing.gni
+++ b/testing/testing.gni
@@ -12,7 +12,7 @@ is_aot_test =
# Unit tests targets are only enabled for host machines and Fuchsia right now
declare_args() {
- enable_unittests = current_toolchain == host_toolchain || is_fuchsia
+ enable_unittests = false #current_toolchain == host_toolchain || is_fuchsia
} root: diff --git a/BUILD.gn b/BUILD.gn
index d086f04a07..2ab968a942 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1136,9 +1136,9 @@ optional("raw") {
public_defines = [ "SK_CODEC_DECODES_RAW" ]
deps = [
- "//third_party/dng_sdk",
+# "//third_party/dng_sdk",
"//third_party/libjpeg-turbo:libjpeg",
- "//third_party/piex",
+# "//third_party/piex",
]
# SkRawCodec catches any exceptions thrown by dng_sdk, insulating the rest of
|
MacOS apps created by Nativeshell are optimized for Intel macs by default. Is there any way to create a universal binary for release and/or debug?
The text was updated successfully, but these errors were encountered: