aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
Commit message (Collapse)AuthorAge
* 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
* Clarify requirement for source file on objc_binary.Gravatar Peter Schmitt2015-04-15
| | | | | -- MOS_MIGRATED_REVID=91100927
* 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
* Make the indirect dependency message show the correct label for external depsGravatar Kristina Chodorow2015-04-15
| | | | | | | | | Previously it would show the relative path within the external dep (e.g., in the given test, "** Please add the following dependencies: x to //a:a"). Fixes https://github.com/google/bazel/issues/112. -- MOS_MIGRATED_REVID=91093258
* Simplify MethodLibrary.Gravatar Laurent Le Brun2015-04-15
| | | | | | | Type information for methods is not needed anymore. -- MOS_MIGRATED_REVID=91088042
* Enable accepting external contributions to the BE's static parts.Gravatar Laszlo Csomor2015-04-14
| | | | | -- MOS_MIGRATED_REVID=91084448
* Use fully qualified paths for C++ includesGravatar Kristina Chodorow2015-04-14
| | | | | | | This fixes https://github.com/google/bazel/issues/66. -- MOS_MIGRATED_REVID=91083724
* Enable external contribution to src/main/java/**Gravatar Damien Martin-Guillerez2015-04-14
| | | | | | | Also removed useless bazel-constants-srcjar.sh -- MOS_MIGRATED_REVID=91075224
* Shrink EvaluationContext a bitGravatar Francois-Rene Rideau2015-04-14
| | | | | | | | Move some functionality to its only current client SkylarkShell, mark some accessor @VisibleForTesting and remove those not currently used for testing. -- MOS_MIGRATED_REVID=91033050
* Use Artifacts instead of Paths in the pregrepped files map.Gravatar Janak Ramakrishnan2015-04-14
| | | | | | | We already have them as artifacts, so it's less work, and this facilitates Skyframe-native include scanning. -- MOS_MIGRATED_REVID=91020322
* 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
* Belated cleanup of MetadataHandler#discardMetadata. Since we have per-action ↵Gravatar Janak Ramakrishnan2015-04-14
| | | | | | | metadata handlers, we can just unconditionally discard all output metadata with this call. -- MOS_MIGRATED_REVID=91008004
* Delete debugging code used to diagnose bug when shared actions raced to execute.Gravatar Janak Ramakrishnan2015-04-14
| | | | | -- MOS_MIGRATED_REVID=91007686
* Don't create duplicate ExtractInclusionActions just because user specifies ↵Gravatar Janak Ramakrishnan2015-04-14
| | | | | | | the same header twice in their BUILD file. -- MOS_MIGRATED_REVID=90995905
* Delete unused code.Gravatar Janak Ramakrishnan2015-04-14
| | | | | -- MOS_MIGRATED_REVID=90994953
* Pick default resources based on the Runtime.maxMemory andGravatar Han-Wen Nienhuys2015-04-14
| | | | | | | | | | | | Runtime.availableProcessors. Previously, the fallback was a hardcoded 3G / 2 CPUs. This increases parallelism on modern OSX hardware. Fixes #101. -- MOS_MIGRATED_REVID=90994895
* Remove make variable GNU_TARGET from blaze.Gravatar Han-Wen Nienhuys2015-04-14
| | | | | -- MOS_MIGRATED_REVID=90994015
* Fix race when two shared actions don't know about each other until after ↵Gravatar Janak Ramakrishnan2015-04-14
| | | | | | | | | they have started executing in SkyframeActionExecutor. We were updating the action cache for both actions in this case, but one of the actions' metadata handler was not updated during execution, and thus it had no metadata for outputs. -- MOS_MIGRATED_REVID=90993813
* Remove autosense logic.Gravatar Han-Wen Nienhuys2015-04-14
| | | | | | | | | | | | | Polling the machine load can never work, because the following scenarios are quite common: * Tasks that are faster than the poll cycle time. * Tasks whose CPU and/or RAM consumption changes over the lifetime of the task. -- MOS_MIGRATED_REVID=90990445
* Make the source jars filegroup hidden so that it doesn't show up in the ↵Gravatar Lukacs Berki2015-04-14
| | | | | | | master log, requiring O(n^2) lines for groups of closely related targets. -- MOS_MIGRATED_REVID=90990029
* Support running extra_actions on [].Gravatar Googler2015-04-14
| | | | | -- MOS_MIGRATED_REVID=90988858
* Eliminate SkylarkType.toMap() in favor of ImmutableMap.copyOf() and simplify Gravatar Lukacs Berki2015-04-14
| | | | | | | SkylarkType.castMap() a little. -- MOS_MIGRATED_REVID=90988088
* A minor refactoring.Gravatar Lukacs Berki2015-04-13
| | | | | -- MOS_MIGRATED_REVID=90981107
* Skylark: Remove static type checking of variables/functions.Gravatar Laurent Le Brun2015-04-13
| | | | | | | | There are still some static checks (check existence of variable/function, readonly variables, etc.). More cleanup will come later. -- MOS_MIGRATED_REVID=90979748
* Move com/google/devtools/build/lib/rules/workspace/* to ↵Gravatar Lukacs Berki2015-04-13
| | | | | | | | | com/google/devtools/build/lib/bazel/rules/workspace to match the files' package declarations. This is cloned from ahumesky's [] so that we can submit it as early as possible. -- MOS_MIGRATED_REVID=90977537
* Extract boilerplate logic from ParallelEvaluator's SkyFunction.Environment ↵Gravatar Janak Ramakrishnan2015-04-13
| | | | | | | | | implementation. This slightly shortens the massive ParallelEvaluator file, and also allows alternate Environment implementations to avoid repeating the boilerplate. -- MOS_MIGRATED_REVID=90830529
* Simplify Skylark testsGravatar Francois-Rene Rideau2015-04-13
| | | | | | | | | | | | | | | | | | Use the new EvaluationContext infrastructure to simplify Skylark tests (said infrastructure is originally based on code from these tests). Merge AbstractEvaluationTestCase and AbstractParserTestCase into a non-abstract class EvaluationTestCase that uses EvaluationContext. Cleanup the EventCollectionApparatus it uses. Refactor all Skylark tests to use this new infrastructure. Fix EvaluationTest and MethodLibraryTest to actually and correctly run tests in both modes. Fix small bugs in the main code base discovered by actually running the code in both modes, and make error messages identical when possible. -- MOS_MIGRATED_REVID=90828053
* Move NativeDepsHelper into the public tree.Gravatar Michael Staib2015-04-13
| | | | | -- MOS_MIGRATED_REVID=90828000
* Don't take into account symlinks when computing intrabuild file ↵Gravatar Miguel Alcon Pinto2015-04-13
| | | | | | | modifications. While there could be bogus targets that modify symlinks, Bazel has output symlinks that point to source code. -- MOS_MIGRATED_REVID=90827597
* 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
* Allow evaluation from StringGravatar Francois-Rene Rideau2015-04-13
| | | | | | | | | | | | | | | | | | | Lift the Evaluation code from the test files AbstractParserTestCase and AbstractEvaluationTestCase into new files EvaluationContext. Remove this code's dependency on FsApparatus (and thus to InMemoryFS), by making the Lexer accept null as filename. Also remove dependency on EventCollectionApparatus; parameterized by an EventHandler. Have the SkylarkSignatureProcessor use this Evaluation for defaultValue-s. While refactoring evaluation, have SkylarkShell use it, which fixes its ValidationEnvironment issues. TODO: refactor the tests to use this new infrastructure. -- MOS_MIGRATED_REVID=90824736
* Make Artifacts be compared to each other based on their exec paths (and not ↵Gravatar Lukacs Berki2015-04-13
| | | | | | | | | their paths). This gives a predictable order in places where Artifacts are sorted by their natural order. This works because exec paths of Artifacts are unique in any given build. -- MOS_MIGRATED_REVID=90807141
* Add a visibility predicate to blaze query.Gravatar Liam Miller-Cushon2015-04-10
| | | | | | | | | | The visible(x, y) query expression computes the subset of nodes in y visible from all nodes in x. RELNOTES: Add a visibility predicate to blaze query. -- MOS_MIGRATED_REVID=90765071
* objc: Add flag to disable per-proto includesGravatar Daniel Wagner-Hall2015-04-10
| | | | | -- MOS_MIGRATED_REVID=90750827
* Provide cleaner syntax error messages using select.Gravatar Greg Estren2015-04-10
| | | | | | | | | | | | | | Given: genrule(srcs = ['somefile'] + select({...})) Before this change: ERROR: unsupported operand type(s) for +: 'List' and 'SelectorValue' After this change: ERROR: unsupported operand type(s) for +: 'List' and 'select' -- MOS_MIGRATED_REVID=90750232
* Clear dirty output tree counters so that the next build does not get the old ↵Gravatar Miguel Alcon Pinto2015-04-10
| | | | | | | counters. -- MOS_MIGRATED_REVID=90749273
* Added an help command to dump all options for completionGravatar Damien Martin-Guillerez2015-04-10
| | | | | | | | | | `bazel help completion` dump all options completion pattern for each command, giving hints on the format of the completion residue (e.g., `label`, `path`, `{a,enum}`, ...). This dump can be used to generate completion scripts. -- MOS_MIGRATED_REVID=90743024
* Minor cleanups in TopLevelArtifactHelper.Gravatar Eric Fellheimer2015-04-10
| | | | | -- MOS_MIGRATED_REVID=90737433
* objc: Preserve existing version strings if no value is specified to ↵Gravatar Daniel Wagner-Hall2015-04-09
| | | | | | | --embed_label -- MOS_MIGRATED_REVID=90723863
* py_binary correctly forwards argumentsGravatar Kevin Watts2015-04-09
| | | | | | -- Change-Id: b2b38d09285950c8ef745dbf2cbd281e09e7a11e MOS_MIGRATED_REVID=90721856
* Add support for $(location) with //external labelsGravatar Kristina Chodorow2015-04-09
| | | | | | | Fixes https://github.com/google/bazel/issues/90. -- MOS_MIGRATED_REVID=90717991
* Use injected action context when include scanning, not hard-coded ↵Gravatar Janak Ramakrishnan2015-04-09
| | | | | | | CppCompilationActionContext, which can be overridden by some modules. -- MOS_MIGRATED_REVID=90716346
* Clean up some FakeCppCompileAction code. In particular FakeCppCompileAction ↵Gravatar Janak Ramakrishnan2015-04-09
| | | | | | | was ignoring the actionContext, which it shouldn't have been. -- MOS_MIGRATED_REVID=90714138
* Add more debugging to help track down crash.Gravatar Janak Ramakrishnan2015-04-09
| | | | | | | Note that we probably want to change the discardMetadata signature to no longer take an argument, since we have per-action metadata handling. However, I'd like to know that that's the source of the crash, if it is, which is why I'm not removing the argument right now. -- MOS_MIGRATED_REVID=90712991
* Enable extranal contributions to lib/webstatusserver/**/*Gravatar Laszlo Csomor2015-04-09
| | | | | -- MOS_MIGRATED_REVID=90710759
* Skylark: Update doc for setsGravatar Laurent Le Brun2015-04-09
| | | | | -- MOS_MIGRATED_REVID=90707320
* Remove implicit outputs tag from py_binary docsGravatar Kristina Chodorow2015-04-09
| | | | | | | See how it renders at http://bazel.io/docs/build-encyclopedia.html#py_binary. -- MOS_MIGRATED_REVID=90706688
* Add logging of blaze_cpu flag usage. Before we can remove this flag we need ↵Gravatar Marian Lobur2015-04-09
| | | | | | | to be sure that no one uses it. -- MOS_MIGRATED_REVID=90693216
* Add debug logging to help find mysterious crash experienced by users.Gravatar Janak Ramakrishnan2015-04-09
| | | | | | | Some care was taken to make sure that we only log when a file is missing *after* the action is executed, when its failure to be present should force a build failure anyway, in order to avoid a source of memory pressure. -- MOS_MIGRATED_REVID=90682557
* Add native dependencies constant to Constants.java.Gravatar Michael Staib2015-04-09
| | | | | -- MOS_MIGRATED_REVID=90649566