-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Makes validation layers flag work for android #42625
Changes from 1 commit
ab0ade1
462ae8c
e4ba216
4236be3
83879f6
73f4eaf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| org.gradle.jvmargs=-Xmx1536M | ||
| org.gradle.jvmargs=-Xmx2048M | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this for?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was just running into it. I'm not 100% sure it caused by this change. My theory is that having those extra .so files in the flutter.jar file somehow requires more memory when the build is happening.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (this increases the JVM heap that gradle uses. It's probably fine to increase this) |
||
| android.useAndroidX=true | ||
| android.enableJetifier=true | ||
| android.builder.sdkDownload=false | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,8 @@ def to_command_line(gn_args): | |
| def merge(key, value): | ||
| if isinstance(value, bool): | ||
| return '%s=%s' % (key, 'true' if value else 'false') | ||
| elif isinstance(value, int): | ||
| return '%s=%d' % (key, value) | ||
| return '%s="%s"' % (key, value) | ||
|
|
||
| return [merge(x, y) for x, y in gn_args.items()] | ||
|
|
@@ -548,11 +550,8 @@ def to_gn_args(args): | |
| gn_args['use_fstack_protector'] = True | ||
|
|
||
| if args.enable_vulkan_validation_layers: | ||
| if args.target_os != 'fuchsia': | ||
| print( | ||
| 'Vulkan validation layers are currently only supported on Fuchsia targets.' | ||
| ) | ||
| sys.exit(1) | ||
| if args.target_os == 'android': | ||
| gn_args['android_api_level'] = int(26) | ||
|
||
| gn_args['enable_vulkan_validation_layers'] = True | ||
|
|
||
| # Enable pointer compression on 64-bit mobile targets. iOS is excluded due to | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there's a convention here to prefix the argument names with
shell_.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved it back to vulkan/config.gni