aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/packages
Commit message (Collapse)AuthorAge
* Documentation fixes.Gravatar Laurent Le Brun2015-05-22
| | | | | -- MOS_MIGRATED_REVID=94274751
* Add a hidden flag which allows us to set the size of the legacy globbing ↵Gravatar Eric Fellheimer2015-05-22
| | | | | | | thread pool. -- MOS_MIGRATED_REVID=94236393
* Forbid string methods used as global functions.Gravatar Laurent Le Brun2015-05-21
| | | | | -- MOS_MIGRATED_REVID=94071970
* Deleted little-used PackageLoadedEvent.Gravatar Eric Fellheimer2015-05-18
| | | | | -- MOS_MIGRATED_REVID=93881974
* Refine duplicate label checking for embedded selects. Before, we wereGravatar Greg Estren2015-05-15
| | | | | | | | | | | | | | | | | | | coarsely checking for duplicates *anywhere*, e.g.: select({':a': ['a.cc'], ':b': ['a.cc']}) + select({':a': ['b.cc'], ':b': ['b.cc']}) would fail. But this case is okay because these duplicates are in mutually exclusive select paths (so they could never appear together anyway). The new checking logic is: - Duplicates can appear in different paths of the same select. - Duplicates can *not* appear within the same path of a select. - Duplicates can *not* appear across multiple selects (no matter what path - this is still stricter than we need to be, but there's no strong case for refining this case now). -- MOS_MIGRATED_REVID=93447979
* Optimize AggregatingAttributeMapper.visitAttribute (which returnsGravatar Greg Estren2015-05-15
| | | | | | | | | | | | | | | | | | | | | | | | | every possible value an attribute can take) for attributes with multiple selects: Given attr = select({':a': 'w', ':b': 'x'}) + select({':a': 'y', ':b': 'z'} the naive approach is to combine every possible value of the first select with every possible value of the second select (producing 4 possible values from 2^2 visitations). But since these selects have the same exact conditions, only two values are actually possible ("wy", "xz") from 2 visitations. This change efficiently considers that case. More generally, given n concatenated selects with the same conditions, it brings evaluation time down from O(2^n) to O(n) (assuming two conditions per select). It also works for partial matches: given a concatenation of 6 selects where 1, 3, and 5 have the same conditions and 2, 4, and 6 have the same conditions, evaluation time goes from O(2^6) to O(2^2). -- MOS_MIGRATED_REVID=93325787
* Build language: Add str.format function.Gravatar Laurent Le Brun2015-05-08
| | | | | | | | | 'x{key}x'.format(key = 2) == 'x2x' It is a very simplified version of the Python format. -- MOS_MIGRATED_REVID=93130656
* Skylark: int() function accepts bools and ints too.Gravatar Laurent Le Brun2015-05-07
| | | | | -- MOS_MIGRATED_REVID=93026026
* Normalize path fragment before saving it in package identifier.Gravatar Janak Ramakrishnan2015-05-07
| | | | | -- MOS_MIGRATED_REVID=92934993
* Open source a few more analysis tests.Gravatar Ulf Adams2015-05-04
| | | | | -- MOS_MIGRATED_REVID=92715161
* Remove old Skylark Function hierarchyGravatar Francois-Rene Rideau2015-04-23
| | | | | | | Last step in refactoring of Skylark builtin functions. -- MOS_MIGRATED_REVID=91796746
* Remove circular symlinks to external dependenciesGravatar Kristina Chodorow2015-04-23
| | | | | | | Fixes #87. -- MOS_MIGRATED_REVID=91784426
* Use BuiltinFunction for all builtinsGravatar Francois-Rene Rideau2015-04-22
| | | | | | | | Replace the uses of AbstractFunction, MixedModeFunction, SkylarkFunction and SimpleSkylarkFunction by BuiltinFunction. -- MOS_MIGRATED_REVID=91763158
* More Skylark function cleanupsGravatar Francois-Rene Rideau2015-04-22
| | | | | -- MOS_MIGRATED_REVID=91713784
* Remove Package.AbstractBuilder.Gravatar Han-Wen Nienhuys2015-04-22
| | | | | | | | This simplifies the code a little, and prepares for properly serializing ExternalPackage. -- MOS_MIGRATED_REVID=91673213
* Migrate SkylarkBuiltin annotations to SkylarkSignature instead.Gravatar Francois-Rene Rideau2015-04-21
| | | | | -- MOS_MIGRATED_REVID=91603959
* Skylark fail function: Remove when attribute.Gravatar Laurent Le Brun2015-04-20
| | | | | | | It appears to be unused. Use an explicit 'if' instead. -- MOS_MIGRATED_REVID=91581070
* Remove legacy methods Package#{getRules,getFiles}.Gravatar Han-Wen Nienhuys2015-04-20
| | | | | -- MOS_MIGRATED_REVID=91573102
* More skylark function cleanupsGravatar Francois-Rene Rideau2015-04-17
| | | | | -- MOS_MIGRATED_REVID=91407816
* Build language: Add sorted function.Gravatar Laurent Le Brun2015-04-17
| | | | | -- MOS_MIGRATED_REVID=91322217
* Further reduction of calls to AggregatingAttributeMapper.visitAttribute.Gravatar Greg Estren2015-04-16
| | | | | | | This is now not called on the regular build path except for computed defaults. -- MOS_MIGRATED_REVID=91306062
* Simplify ValidationEnvironment.Gravatar Laurent Le Brun2015-04-16
| | | | | | | We need only a set of symbols, types are not used anymore. -- MOS_MIGRATED_REVID=91299566
* Add a missing "final" modifier.Gravatar Lukacs Berki2015-04-16
| | | | | -- MOS_MIGRATED_REVID=91288032
* Minimize calls to AggregatingAttributeMapper.visitAttribute. Attributes withGravatar Greg Estren2015-04-15
| | | | | | | | | multiple selects run the risk of exponential value growth, so we shouldn't request a full iteration of possible values unless that's really what the caller needs. -- MOS_MIGRATED_REVID=91118257
* More ValidationEnvironment cleanup, remove SkylarkType.GLOBAL.Gravatar Laurent Le Brun2015-04-15
| | | | | | | We don't need to store object methods, just global values. -- MOS_MIGRATED_REVID=91094780
* Simplify MethodLibrary.Gravatar Laurent Le Brun2015-04-15
| | | | | | | Type information for methods is not needed anymore. -- MOS_MIGRATED_REVID=91088042
* Configurable attributes: support embeddable selects. With thisGravatar Greg Estren2015-04-14
| | | | | | | | | | | | | | | | change, the following syntax: deps = [':always'] + select({':a': [':adep'], ':b': [':bdep']}) or deps = select({':a': [':adep'], ':b': [':bdep']}) + select({':c': [':cdep'], ':d': [':ddep']}) works. -- MOS_MIGRATED_REVID=91016337
* Eliminate SkylarkType.toMap() in favor of ImmutableMap.copyOf() and simplify Gravatar Lukacs Berki2015-04-14
| | | | | | | SkylarkType.castMap() a little. -- MOS_MIGRATED_REVID=90988088
* Skylark builtin function cleanupsGravatar Francois-Rene Rideau2015-04-13
| | | | | | | | | | Clean up related to Skylark builtin functions. Replace "hidden" field of some annotations with a "documented" field (with reversed semantics). -- MOS_MIGRATED_REVID=90827020
* Skylark: Update doc for setsGravatar Laurent Le Brun2015-04-09
| | | | | -- MOS_MIGRATED_REVID=90707320
* Skylark: Expose output_to_genfiles rule attributeGravatar Laurent Le Brun2015-04-08
| | | | | -- MOS_MIGRATED_REVID=90616271
* Skylark: Implicit outputs can refer to labels.Gravatar Laurent Le Brun2015-04-03
| | | | | | | Fixes #91. -- MOS_MIGRATED_REVID=90185784
* Make rule.getLabels deterministic.Gravatar Laurent Le Brun2015-04-02
| | | | | | | HashMultimap provides no guarantee on the iteration order. -- MOS_MIGRATED_REVID=90153110
* Skylark: Add function 'int'Gravatar Laurent Le Brun2015-04-02
| | | | | -- MOS_MIGRATED_REVID=90151316
* Remove direct store of Target from NoSuchTargetException. Instead, just note ↵Gravatar Eric Fellheimer2015-04-02
| | | | | | | the fact that a valid Target exists, and instead request it directly from its Package. -- MOS_MIGRATED_REVID=90107670
* Clean up an unnecessary field in NoSuchTargetException.Gravatar Eric Fellheimer2015-04-02
| | | | | -- MOS_MIGRATED_REVID=90081310
* Skylark: Improve documentation for configuration transitions.Gravatar Laurent Le Brun2015-04-01
| | | | | -- MOS_MIGRATED_REVID=90061800
* Debug BuiltinFunctionGravatar Francois-Rene Rideau2015-04-01
| | | | | -- MOS_MIGRATED_REVID=90004683
* Skylark: Add dictionary.getGravatar Laurent Le Brun2015-03-31
| | | | | -- MOS_MIGRATED_REVID=89962232
* Skylark: Improve documentationGravatar Laurent Le Brun2015-03-31
| | | | | -- MOS_MIGRATED_REVID=89957248
* Description redacted.Gravatar Googler2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89740455
* 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
* 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
* 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
* 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
* Skylark: native module is updated with exports_files and package_group.Gravatar Googler2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89386727
* Skylark: Package environment extensions can register functions with the ↵Gravatar Googler2015-03-24
| | | | | | | native module. -- MOS_MIGRATED_REVID=89309511
* Skylark: zip function is implemented.Gravatar Googler2015-03-24
| | | | | -- MOS_MIGRATED_REVID=89296560