aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib
Commit message (Collapse)AuthorAge
* Add PrepareDepsOfPatternsFunction, use before queryGravatar Mark Schaller2015-03-31
| | | | | | | | | | | | | This introduces a single SkyFunction that has the desired side effect of loading matching targets and their transitive dependencies in the graph. It replaces the two calls to buildDriver.evaluate that made sure the graph loaded the necessary values before query evaluation with just one call. -- MOS_MIGRATED_REVID=89864338
* Description redacted.Gravatar Googler2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89740455
* Catch action conflicts in the same target during configured target analysis, ↵Gravatar Janak Ramakrishnan2015-03-30
| | | | | | | and fail hard in other cases. -- MOS_MIGRATED_REVID=89720528
* Resolve inputs that were stored in action cache ahead of time so metadata ↵Gravatar Janak Ramakrishnan2015-03-30
| | | | | | | | | | | for them can be retrieved with other inputs, avoiding a restart. This also allows us to delete the UndeclaredInputsHandler, since we eagerly cache metadata before entering any ActionCacheChecker methods. This should also allow us to split FileAndMetadataCache into two separate classes, as well as asserting that SingleBuildFileCache only sees non-artifact ActionInputs. To be done in follow-ups. -- MOS_MIGRATED_REVID=89718712
* Fix WORKSPACE file lookup to look at all package pathsGravatar Kristina Chodorow2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89713328
* remove unused method/vars/doc in ConfiguredTargetFunctionGravatar Michajlo Matijkiw2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89704303
* Move action-cache updating to inside ActionExecutionFunction, in preparation ↵Gravatar Janak Ramakrishnan2015-03-30
| | | | | | | | | for allowing it to be restarted in case of missing deps. Note that this means that action-cache writing is no longer part of the ACTION_COMPLETE profiling unit. -- MOS_MIGRATED_REVID=89702039
* Actually force loading of optional objc labelsGravatar Daniel Wagner-Hall2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89697088
* Make Python rules in Bazel actually work.Gravatar Lukacs Berki2015-03-30
| | | | | | | In particular: add a BazelPythonSemantics implementation and the respective RuleConfiguredTarget factories, rule class definitions and hook them up with BazelRuleClassProvider. Add implicit dependencies (2to3 is just a stub script for now that always fails) and a tiny exampe. -- MOS_MIGRATED_REVID=89691827
* Bazel: move sources around to prepare accepting GitHub pull requests.Gravatar Laszlo Csomor2015-03-30
| | | | | | | This change moves the workspace rules and adjusts BUILD files as necessary. -- MOS_MIGRATED_REVID=89689632
* PackageSerializer: include attributes with null values.Gravatar Greg Estren2015-03-26
| | | | | | | | | | | | PackageDeserializer: handle null-value attributes (single-value attributes with no value setting) without crashing. Without this change, attributes with computed defaults can crash on serialization because RawAttributeMapper.isNotNull isn't smart enough to check *indirect* configurable attributes that the computed attribute depends on. -- MOS_MIGRATED_REVID=89599145
* Sign bundles for device if ios_multi_cpu contains device cpus.Gravatar Peter Schmitt2015-03-26
| | | | | | | Introduces a restriction that prohibits using both simulator and device architectures for ios_multi_cpus in the same build. -- MOS_MIGRATED_REVID=89597247
* Bazel docs: fix broken links in BE.Gravatar Laszlo Csomor2015-03-26
| | | | | -- MOS_MIGRATED_REVID=89592165
* Fix bug where inputs are updated from action cache but not tracked in Skyframe.Gravatar Janak Ramakrishnan2015-03-26
| | | | | | | This bug, and all of them like it, will be fixed in an upcoming cl that makes sure all input metadata is obtained through Skyframe. But I think we should have this fix now. -- MOS_MIGRATED_REVID=89540265
* Add functionality to discard orphaned binaries and middlemen.Gravatar Michajlo Matijkiw2015-03-25
| | | | | | | | | | Here we additionally identify artifacts as orphaned if they are only inputs to middleman actions whose outputs are unused. The middleman actions are still part of the action graph, but we tolerate their inputs being orphaned. -- MOS_MIGRATED_REVID=89512745
* Proper support for the external immutable directory mechanism for symlink ↵Gravatar Nathan Harmata2015-03-25
| | | | | | | chains. -- MOS_MIGRATED_REVID=89511018
* Skylark: native module is updated.Gravatar Googler2015-03-25
| | | | | -- MOS_MIGRATED_REVID=89483786
* Add support of aspects to the skyframe implementation of query. To keep ↵Gravatar Marian Lobur2015-03-25
| | | | | | | these two versions of query consistent we need to add additional edges to the target that contains aspects, instead of adding it to the target that was in direct deps of the original one. -- MOS_MIGRATED_REVID=89483301
* More precisely document AttributeMap.get (particularly the possibilityGravatar Greg Estren2015-03-25
| | | | | | | of null values). -- MOS_MIGRATED_REVID=89443545
* Allow the number of threads used in target parsing to be configurable.Gravatar Eric Fellheimer2015-03-25
| | | | | -- MOS_MIGRATED_REVID=89443026
* Remove useless flag check; executeBuild is only called if execution is ↵Gravatar Nathan Harmata2015-03-25
| | | | | | | requested. -- MOS_MIGRATED_REVID=89436511
* Merge PackageSerializer's and ProtoOutputFormatter's duplicatedGravatar Greg Estren2015-03-25
| | | | | | | | | | | | | | | | serialization logic. Among other things, this fixes an out-of-sync bug where ProtoOutputFormatter's version knew how to handle configurable attributes while PackageSerializer's version crashed. The merged logic preserves ProtoOutputFormatter's semantics: configurable attributes work, but their values are merged together into a flattened list, so the original select structure can't be reproduced later. -- MOS_MIGRATED_REVID=89435116
* Bazel docs: document cc_library.hdrs_check and fix a broken BE link.Gravatar Laszlo Csomor2015-03-25
| | | | | -- MOS_MIGRATED_REVID=89433520
* Skylark: kill package loading if a Skylark file has errors.Gravatar Googler2015-03-25
| | | | | -- MOS_MIGRATED_REVID=89411484
* Compile objc resources when bundling, not at each target.Gravatar Peter Schmitt2015-03-24
| | | | | | | | | | | | | | | | | | | | | | This change moves the resource compilation actions from each declaring target to the bundle in which they're stored. This bundle is (mostly, see below) the only thing that cares about the compiled resources. As a result, we avoid compiling each resource many times when in a multi-architecture context. Note that as a result of this change rules other than ios_test do no longer add the compiled datamodels and storyboards to files to build. There (should?) be no need for them anyhow. Also, Xcode targets will now no longer contain the transitive closure of datamodels, only their own. Note that in the case where the input resource is produced by a genrule the resource compilation still happens for each architecture but we ignore the results for all but one of the architectures to avoid bundling conflicts. There are also some more validation checks and nicer error messages for users when they specify illegal strings resources. -- MOS_MIGRATED_REVID=89404405
* Removed a <?> generic in a instanceof.Gravatar Damien Martin-Guillerez2015-03-24
| | | | | | | | | This syntax is broken under Eclipse. For some reason this syntax is valid from BuildJar but it is not compatible with Eclipse Java 8. -- MOS_MIGRATED_REVID=89397040
* Line break after . rather than beforeGravatar Daniel Wagner-Hall2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89392921
* Actually add OutputGroupProvider.DEFAULT to the set of files to be built ↵Gravatar Lukacs Berki2015-03-24
| | | | | | | | | when the default is specified (and not just filesToBuild). This is necessary so that rules that explicitly add artifacts to OutputGrovider.DEFAULT have those artifacts built when they are mentioned on the command line. -- MOS_MIGRATED_REVID=89387243
* Skylark: native module is updated with exports_files and package_group.Gravatar Googler2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89386727
* Skylark: Allow builtin functions to be shadowed.Gravatar Laurent Le Brun2015-03-24
| | | | | | | | | | | This change makes them consistent with global variables. e.g. def foo(len): return len + 1 # now allowed Redefinition is still forbidden. -- MOS_MIGRATED_REVID=89383535
* Adds some notes about --batch flag.Gravatar Googler2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89348225
* Skylark: Package environment extensions can register functions with the ↵Gravatar Googler2015-03-24
| | | | | | | native module. -- MOS_MIGRATED_REVID=89309511
* Parser: Useful error messages when a Python keyword is used.Gravatar Laurent Le Brun2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89307831
* Parser: Add Python 3 keywords.Gravatar Laurent Le Brun2015-03-24
| | | | | | | RELNOTES: Python 3 keywords are added to the lexer. They cannot be used as identifiers. -- MOS_MIGRATED_REVID=89301541
* Preload the universe for query testsGravatar Mark Schaller2015-03-24
| | | | | | | | | | | | | This change means that tests no longer need to specify the patterns they use themselves, unless the test involves excluding some pattern. Also fixes a bug in GraphBackedRecursivePackageProvider revealed by the test changes where it behaved differently from EnvironmentBackedRecursivePackageProvider when looking up packages with errors. -- MOS_MIGRATED_REVID=89297008
* Skylark: zip function is implemented.Gravatar Googler2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89296560
* Parser: Improve error messages (mention what was expected)Gravatar Laurent Le Brun2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89296523
* Skylark: Implement string.index and string.rindexGravatar Laurent Le Brun2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89294740
* Skylark: the native module is refactored and documented.Gravatar Googler2015-03-24
| | | | | | | | - SkylarkNativeModule is added to handle to native module. - Glob function is migrated to be a SkylarkFunction. Note that other functions in the native module are more difficult to migrate since they are not static. -- MOS_MIGRATED_REVID=89292579
* A minor change in the path of ijars: previously the exec path of a ↵Gravatar Lukacs Berki2015-03-23
| | | | | | | | | java_binary was a prefix of the exec path of the associated ijar, which may cause problems. This was discovered using my "bindir == genfilesdir == outputdir" experiment. -- MOS_MIGRATED_REVID=89285440
* Skylark: document ctx.expand_make_variables.Gravatar Googler2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89285345
* Skylark: Fix typing for slice/substring operator.Gravatar Laurent Le Brun2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89279534
* Add serialization functionality to classes.Gravatar Eric Fellheimer2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89152485
* Only use a single copy of a nested bundle with ios_multi_cpus.Gravatar Peter Schmitt2015-03-23
| | | | | | | | | | | | We generate a nested bundle for each architecture specified in ios_multi_cpus which would cause any artifacts generated by these rules (such as info plists or compiled resource files) to clash in the final application bundle (where the bundle directory only exists once). For now just pick one architecture at random to store the bundle in - unfortunately we still generate the bundle for all architectures. -- MOS_MIGRATED_REVID=89152199
* Reword documentation of --universe_scope to emphasize that it isn't ↵Gravatar Nathan Harmata2015-03-23
| | | | | | | necessarily used (it's not used when SkyQuery isn't used, e.g. when --noorder_results isn't specified). -- MOS_MIGRATED_REVID=89150192
* Include generateSubmodules in the cache key.Gravatar Googler2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89149156
* Description redacted.Gravatar Googler2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89148288
* Remove common java code between objc tools and rules.Gravatar Peter Schmitt2015-03-23
| | | | | | | | | | As we are releasing the tools somewhat independently of the rules these utility dependencies make life a lot harder. I'm sad about losing some of the enum type-safety but being able to treat the code independently is more than worth it. -- MOS_MIGRATED_REVID=89137624
* Pass pre-processed label to Xcodegen so it can be used as an Xcode target ↵Gravatar Matthew DeVore2015-03-23
| | | | | | | | | name without any extra work in Xcodegen. Use this label to determ ine the *correct* built library. -- MOS_MIGRATED_REVID=89135635
* Description redacted.Gravatar Greg Estren2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89134834