diff --git a/base/src/META-INF/blaze-base.xml b/base/src/META-INF/blaze-base.xml index d5b47dcac07..f186817d8f7 100644 --- a/base/src/META-INF/blaze-base.xml +++ b/base/src/META-INF/blaze-base.xml @@ -630,7 +630,7 @@ - + diff --git a/base/src/com/google/idea/blaze/base/sync/aspects/AspactBuildFlagsProvider.java b/base/src/com/google/idea/blaze/base/sync/aspects/AspectBuildFlagsProvider.java similarity index 83% rename from base/src/com/google/idea/blaze/base/sync/aspects/AspactBuildFlagsProvider.java rename to base/src/com/google/idea/blaze/base/sync/aspects/AspectBuildFlagsProvider.java index 4c13bff8022..bac6376c09d 100644 --- a/base/src/com/google/idea/blaze/base/sync/aspects/AspactBuildFlagsProvider.java +++ b/base/src/com/google/idea/blaze/base/sync/aspects/AspectBuildFlagsProvider.java @@ -11,7 +11,7 @@ import java.util.List; import java.util.Optional; -public class AspactBuildFlagsProvider implements BuildFlagsProvider { +public class AspectBuildFlagsProvider implements BuildFlagsProvider { @Override public void addBuildFlags( @@ -20,7 +20,9 @@ public void addBuildFlags( BlazeCommandName command, BlazeInvocationContext invocationContext, List flags) { - // aspects are only required during sync + Arrays.stream(AspectRepositoryProvider.getOverrideFlags(project)).filter(Optional::isPresent) + .map(Optional::get) + .forEach(flags::add); } @Override