| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently we may do lookups of not-already-cached packages during the
execution phase for actions that discover inputs. Exceptions encountered
during this would go unhandled and result in a crash. Here we introduce
PackageRootResolutionException which wraps these exceptions and triggers
an ActionExecutionException which is cleanly handled in the exec phase.
As part of this change SkyframeActionExecutor#getArtifactRoots(...) will
fail properly on errors getting package roots.
--
MOS_MIGRATED_REVID=95578891
|
|
|
|
|
|
|
|
|
| |
testing and support.
RELNOTES: Elements of ZipCombiner's API previously marked deprecated are removed.
--
MOS_MIGRATED_REVID=95543357
|
|
|
|
|
|
|
|
|
| |
order to create the classes.jar to be used in aar generation.
RELNOTES: The classes.jar in .aar files now also contains the contents of any class jars specified in the android_library.srcs attribute.
--
MOS_MIGRATED_REVID=95542278
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95536484
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Until the Jack aspect implementation is submitted (in a coming CL),
only android_library dependencies can be used by Jack dexing, as no
other rule type exports the right provider.
But for now, android_binaries which depend purely on android_libraries
can build their dexes using Jack if --experimental_android_dex_with_jack
is specified.
--
MOS_MIGRATED_REVID=95534421
|
|
|
|
|
|
|
| |
cased strategy-flags can override the default flags (otherwise for example "Javac" and "javac" are both stored in the case-sensitive HashMap and it depends on luck which one ends up in the final strategy map).
--
MOS_MIGRATED_REVID=95532191
|
|
|
|
|
|
|
| |
process.
--
MOS_MIGRATED_REVID=95531532
|
|
|
|
|
|
|
|
|
| |
JavaDoc strings, ...
I found having stack traces very helpful while I was debugging an issue where the JavaBuilder ran out of file handles and crashed, but only printed "Compilation failed: No more file handles" and didn't tell me which part of the code actually tried to open the file.
--
MOS_MIGRATED_REVID=95529141
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95527889
|
|
|
|
|
|
|
|
|
| |
This will be used by the persistent JavaBuilder, which improves performance of Java compilation by 4x due to profiting from JVM JIT optimizations and not having to relaunch the JVM for every spawn.
It is completely generic though, so as long as a tool (ProGuard? Dexer? Whatever.) conforms to the Worker process protocol, it can use the new spawn strategy.
--
MOS_MIGRATED_REVID=95527132
|
|
|
|
|
|
|
| |
This functionality used to be part of SkylarkNestedSet.
--
MOS_MIGRATED_REVID=95526136
|
|
|
|
|
|
|
| |
Fixes #206.
--
MOS_MIGRATED_REVID=95525127
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is necessary to add support for Java-based languages like GWT, Groovy, and Scala. With this change, I can construct a classpath for GWT as follows:
all_deps = set(ctx.files.deps + ctx.files._implicitdeps)
for this_dep in ctx.attr.deps:
if hasattr(this_dep, 'java'):
all_deps += this_dep.java.transitive_runtime_deps
all_deps += this_dep.java.transitive_source_jars
classpath = ":".join([dep.path for dep in all_deps])
--
Change-Id: If58ffd19a4cc19f69d5f98814c11391683804234
Reviewed-on: https://bazel-review.googlesource.com/#/c/1480
MOS_MIGRATED_REVID=95523130
|
|
|
|
|
|
|
| |
This is needed so that Bazel can access Android NDK if it's outside of the workspace. The current limitation is that we Bazel can pretend that there is a BUILD file there, but cannot do the same with a CROSSTOOL file. We could fix that limitation, but given that Crosstool is the only conceivable use case, let's fix it by changing the Blaze-Crosstool interface.
--
MOS_MIGRATED_REVID=95517408
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95514599
|
|
|
|
|
|
|
| |
android_ndk_repository rules that will be used to reference Android SDK/NDK to be used for Android builds.
--
MOS_MIGRATED_REVID=95507994
|
|
|
|
|
|
|
| |
query for aspects that do not have implicit attributes.
--
MOS_MIGRATED_REVID=95507900
|
|
|
|
|
|
|
|
| |
If enabled, JavaBuilder will write a jar containing classes generated by
annotation processors to the given path.
--
MOS_MIGRATED_REVID=95470914
|
|
|
|
|
|
|
| |
Previously would always log null.
--
MOS_MIGRATED_REVID=95446225
|
|
|
|
|
|
|
|
|
|
|
| |
Due to our streaming deserialization approach we can leave data on the
wire when encountering exceptions. Java serialization, the primary
consumer of this code, isn't happy with that and throws an
IllegalStateException("unread block data"), drowning out the original
exception and leaving us without much useful debug information.
--
MOS_MIGRATED_REVID=95442892
|
|
|
|
|
|
|
| |
DirectoryListingStateKeys as dirty. Note that the two previous "concerns" of cycles and errors (which weren't actually concerns) are now obsolete anyway.
--
MOS_MIGRATED_REVID=95441624
|
|
|
|
|
|
|
| |
Java complained about the use of an indirect dependency.
--
MOS_MIGRATED_REVID=95439614
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95431414
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95429195
|
|
|
|
|
|
|
| |
in BazelRulesModule, as they are already added in the StandaloneContextProvider.
--
MOS_MIGRATED_REVID=95428810
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95427512
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95424742
|
|
|
|
|
|
|
|
|
|
|
| |
Create a Printer class into which to eventually move all printing infrastructure
currently in EvalUtils. For now, only move string escaping there.
Fix the forgotten case of backslash.
Allow any style of Python quotes, while we're at it,
but keep using simple double-quote as the default.
--
MOS_MIGRATED_REVID=95328052
|
|
|
|
|
|
|
| |
the binary_under_test. This prevents the filter from removing classes that are identical in the deploy jars but are proguarded differently.
--
MOS_MIGRATED_REVID=95325114
|
|
|
|
|
|
|
|
|
|
|
| |
This will be used by Jack support, which needs to know the different types
of sources as they're handled differently on the Bazel side. Additionally,
it wants to know the difference between source jars the user provided directly
in the sources of the rule, and source jars used to provide sources for the jar
files in the same rule.
--
MOS_MIGRATED_REVID=95324035
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95320780
|
|
|
|
|
|
|
|
| |
This doesn't do transitive dependencies yet, but it parses a pom.xml file and
turns it into a WORKSPACE file.
--
MOS_MIGRATED_REVID=95305450
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Emulator is missing GLIBC_2.7 for certain cases.
*** Original change description ***
Remove the dynamic tool launcher, now that the android tools are static.
--
MOS_MIGRATED_REVID=95302834
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This class contains the compilation logic for Jack: building Java files/resources
into Jack libraries, and converting jar files using Jill to convert Java code and a
resource extraction script to pull resources out.
The JackLibraryProvider is exported by rules which can compile to Jack.
Android library rules will export this provider, while an aspect will be used to
add it to Java rules.
--
MOS_MIGRATED_REVID=95296935
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95285376
|
|
|
|
|
|
|
|
|
|
| |
We still support the --blazerc syntax and don't use the product name for
legacy reasons. Bazel should only refer to --bazelrc now.
Fixes #229
--
MOS_MIGRATED_REVID=95282659
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added target to use java skylark rules to bootstrap
JavaBuilder and SingleJar. Uses thoses target to bootstrap
JavaBuilder and SingleJar and compiles all tools using
Bazel.
--
Change-Id: I5142917c8b31e04015fbab89382df36b4892d8c6
Reviewed-on: https://bazel-review.googlesource.com/#/c/1451/
MOS_MIGRATED_REVID=95281092
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95278949
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
additional information about aspect dependencies when --output is set to {xml, proto}.
One quirk of this CL is that if BUILD files of direct dependencies are added both under <subinclude> and <load>. Any better ideas are appreciated.
As a drive-by fix, if for some reason a package reports the same label as a both subinclude and a Skylark dependency, it will only be reported once in the proto output.
RELNOTES[NEW]: added --with_aspect_deps to blaze query, that prints additional information about aspects of target when --output is set to {xml, proto, record}.
--
MOS_MIGRATED_REVID=95272042
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95261769
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95227410
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95215123
|
|
|
|
|
|
|
| |
important because the directory's inode could be reused for another directory in the future, and we would get WatchEvents for that new directory which would be problematic if we hadn't noted it yet.
--
MOS_MIGRATED_REVID=95214882
|
|
|
|
|
|
|
|
|
|
|
|
| |
While evaluating the transitive closure of the universe, if the
universe contains the buildfiles of a package with a subinclude, the
RdepsFunction would ask a FakeSubincludeTarget for its package.
Prior to this change, this would result in a crash. Now,
FakeSubincludeTargets remember the package they belong to.
--
MOS_MIGRATED_REVID=95212925
|
|
|
|
|
|
|
|
|
|
|
|
| |
When compiling in multiple architectures, the same resource may be added
to a bundle several times because it is generated by a genrule within each
architecture's configuration. This causes conflicts when adding the files
to the final bundle which is why we discard all but one of the generated
files that map to the same location (error checking for users accidentally
mapping to the same location exists).
--
MOS_MIGRATED_REVID=95212124
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95206267
|
|
|
|
|
|
|
|
|
| |
Duplicate include directories were always possible, but are now much more likely because CppCompileAction#getSystemIncludeDirs will overlap with CppCompileAction#getBuiltInIncludeDirs. Note that it is possible that neither is a subset of the other -- raw specification of C++ options in the CROSSTOOL or elsewhere will be in getSystemIncludeDirs and not in getBuiltInIncludeDirs. Similarly, the include directory under the sysroot will be in getBuiltInIncludeDirs but not in getSystemIncludeDirs.
Duplicate directories are bad because if an #include_next is specified in a file inside a directory listed twice, the scanner may just find that file again in the next occurrence of the directory, as opposed to a different directory listed later.
--
MOS_MIGRATED_REVID=95165367
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes #224
AttributeMap#has() checks if a rule has an attribute for a specific
type, not if it's set. We need to check the value to make sure it's
reasonable.
--
MOS_MIGRATED_REVID=95138818
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=95135804
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is necessary to implement GWT support in Bazel, which requires source jars
on the classpath. With this change, I can build a GWT classpath as follows:
all_deps = ctx.files.deps
for this_dep in ctx.attr.deps:
if this_dep.java: all_deps += this_dep.java.source_jars
classpath = ":".join([dep.path for dep in all_deps])
--
Change-Id: I1983cb57f15eb48e49b81b250bb18bb51b7d9391
Reviewed-on: https://bazel-review.googlesource.com/1441
MOS_MIGRATED_REVID=95111144
|