aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* Delete PackageCacheBackedTargetPatternResolver. There is no PackageCache.Gravatar Janak Ramakrishnan2015-03-16
| | | | | -- MOS_MIGRATED_REVID=88547886
* Skylark: Fix typing of structsGravatar Laurent Le Brun2015-03-16
| | | | | -- MOS_MIGRATED_REVID=88546692
* RELNOTES: Allow users to set the simulated device, SDK, and environment from ↵Gravatar Googler2015-03-13
| | | | | | | the command line when running an objc_binary or ios_application. -- MOS_MIGRATED_REVID=88544811
* Add documentation body for Bazel java_test, sh_binary, sh_test, test_suite.Gravatar Laszlo Csomor2015-03-13
| | | | | -- MOS_MIGRATED_REVID=88535323
* Fix Build Encyclopedia docgen: allow overriding rule definitions.Gravatar Laszlo Csomor2015-03-13
| | | | | | | | This is important if a base rule definition is available but the specific rule class wants to override it. -- MOS_MIGRATED_REVID=88533474
* Declare dependencies on discovered inputs before execution instead of after.Gravatar Janak Ramakrishnan2015-03-13
| | | | | | | | | | | As a side effect, we no longer restart ActionExecutionFunction after the action has executed unless the action ran locally (and therefore didn't discover its inputs beforehand). This also means that we no longer need to store an out-of-Skyframe cache for discovered includes except when checking the action cache. Since my suspicion is that the out-of-Skyframe cache will have a minimal performance impact once it is just being used for the action cache, I may delete it in a follow-up cl. After this change, we will overapproximate the set of includes because we depend on all includes, rather than just the ones that the action was found to depend on after execution. This is a prerequisite for Skyframe-native include scanning in that Skyframe-native include scanning will need to add at least as many Skyframe nodes and edges. If we end up punting on it, then we may want to revert this change. But for now I think it's worth having. I'll run some more numbers to see what the actual performance impact is. -- MOS_MIGRATED_REVID=88492955
* Implement ConditionalExpressionGravatar Francois-Rene Rideau2015-03-13
| | | | | | | Also add tests. -- MOS_MIGRATED_REVID=88474801
* add baseline functionality for not saving unused artifactsGravatar Michajlo Matijkiw2015-03-13
| | | | | | | | | | | | | | | | | | | We define unused artifacts as those that aren't consumed by any action. This can be because an action produced more outputs than a dependent action needed, or because it's a top level artifact and we don't care about its contents, just that it was built without issue. Actions may prevent outputs from being discarded by declaring them as mandatory. This is particularly useful for test outputs. The motivation behind this change is to reduce storage overhead for things we can do without. It is worth noting this change doesn't cover all cases. In particular it has difficulty identifying *_binary artifacts as orphaned. This is due to the insertion of a virtual runfiles artifact which depends upon the rule's outputs. -- MOS_MIGRATED_REVID=88467504
* BazelExtraActionRule is documented.Gravatar Googler2015-03-13
| | | | | -- MOS_MIGRATED_REVID=88449349
* BazelActionListenerRule is documented.Gravatar Googler2015-03-13
| | | | | -- MOS_MIGRATED_REVID=88444163
* Use VFS_READLINK rather than VFS_LINK, to avoid confusion with theGravatar Han-Wen Nienhuys2015-03-13
| | | | | | | link system call. -- MOS_MIGRATED_REVID=88441395
* Skylark: DictionaryLiteral is immutable (like every dict).Gravatar Laurent Le Brun2015-03-13
| | | | | -- MOS_MIGRATED_REVID=88440711
* Skylark: Make ctx.var a dictionary.Gravatar Laurent Le Brun2015-03-13
| | | | | | | | ctx.var(x) is kept for compatibility and should be removed after next release. -- MOS_MIGRATED_REVID=88438195
* Attribute synopsis's are cleaned up. The BE generator prints a warning in ↵Gravatar Googler2015-03-13
| | | | | | | case of a missing synopsis (except for deprecated attributes). -- MOS_MIGRATED_REVID=88436777
* Simplify Attribute builder now that all rules specify allowed file types.Gravatar Ulf Adams2015-03-13
| | | | | -- MOS_MIGRATED_REVID=88436595
* Bazel sh_* rules are documented and cleared up.Gravatar Googler2015-03-13
| | | | | | | | - Unused attribute bash_version is removed from all sh_* rules. - ShTest.java is deleted. Shell binary and test rules have the same implementation. -- MOS_MIGRATED_REVID=88434794
* AttributeMap#has(String, Type) is added to check whether an attribute with a ↵Gravatar Googler2015-03-13
| | | | | | | | | given name is present. Rule implementations are cleaned up. -- MOS_MIGRATED_REVID=88430329
* RELNOTES[NEW]: Added --relative_locations flag to the query command to make ↵Gravatar Damien Martin-Guillerez2015-03-13
| | | | | | | | | the locations of build files relative to the workspace root with protobuf and XML outputs Protobuf and XML outputs of query are non-deterministic. This flag is a first step to make genquery deterministic accross machine. -- MOS_MIGRATED_REVID=88428100
* Remove dead blaze flag --show_builder_stats.Gravatar Laszlo Csomor2015-03-13
| | | | | -- MOS_MIGRATED_REVID=88428013
* Defaulted cpu to the host cpuGravatar Damien Martin-Guillerez2015-03-13
| | | | | | | | This should remove the needs for the --cpu=darwin flag under darwin. Bazel build are now using the host cpu too. This commit also fix the host cpu detection. The host cpu detection was too late and and some corner case was not really working with configurable attributes. It is now done as the default value for the --host_cpu flag. -- MOS_MIGRATED_REVID=88427551
* Document Bazel's genrule.Gravatar Laszlo Csomor2015-03-13
| | | | | -- MOS_MIGRATED_REVID=88426689
* BazelTestSuiteRule is documented. The "suites" attribute is removed from ↵Gravatar Googler2015-03-13
| | | | | | | | | | BazelTestSuiteRule. - "suites" is deprecated - it has the exact same functionality as "tests" -- MOS_MIGRATED_REVID=88426066
* Implements an attribute textual_hdrs for cc_library rules.Gravatar Manuel Klimek2015-03-13
| | | | | | | | | | | We currently use .inc as file extension for textual includes, as per the style guide. This is not feasible for third_party libraries, including libc and lib(std)c++. RELNOTES: Add textual_hdrs attribute to cc_library rules. -- MOS_MIGRATED_REVID=88422306
* Save ~13% execution time in []RuleClassProvider.create() by only formatting ↵Gravatar Googler2015-03-13
| | | | | | | | | strings if the result will be used. This is about 120-130ms. -- MOS_MIGRATED_REVID=88397372
* Inform EvaluationProgressReceiver of nodes that are built in error.Gravatar Janak Ramakrishnan2015-03-13
| | | | | | | | | This allows the pending action counter to be decremented correctly when in --keep_going mode. As part of this, there's a small refactor in ParallelEvaluator that also fixes a potential bug, that nodes in error were signaling their parents with the graph version as opposed to their actual version. Because errors never compare equal (ErrorInfo doesn't override equality), this isn't an issue in practice. But it could be in the future. -- MOS_MIGRATED_REVID=88395500
* Delete unused class.Gravatar Nathan Harmata2015-03-13
| | | | | -- MOS_MIGRATED_REVID=88380387
* Make the semantics of runfiles trees saner by always using the entry that ↵Gravatar Lukacs Berki2015-03-13
| | | | | | | | | comes last in the iteration order for a particular path. Before, if there were three entries for the same path with the middle one being different, the first one would be overridden by the middle one, and the last one would be omitted because it is .equals() to the first. -- MOS_MIGRATED_REVID=88377253
* Fix classpath with named workspace for java binaryGravatar Damien Martin-Guillerez2015-03-13
| | | | | | | | The classpath construction used a prefix substitution that was not including the name of the workspace for java binaries. -- MOS_MIGRATED_REVID=88375741
* Move bundle_id storage from BundleMergeControlBytes to Bundling to fix a ↵Gravatar Googler2015-03-13
| | | | | | | | | case of nested bundles. RELNOTES: objc: Fixes a case where nested bundle would pick up parent bundle_id value -- MOS_MIGRATED_REVID=88372062
* Return the set of files found when discovering inputs. Skyframe will ↵Gravatar Janak Ramakrishnan2015-03-11
| | | | | | | | | probably want to store these and may declare dependencies in advance so all metadata is present in the graph. Long-term, we may be able to use the returned set to make input-discovering actions immutable, which would be nice. -- MOS_MIGRATED_REVID=88348068
* structured_resources allows directories in .app.Gravatar Peter Schmitt2015-03-11
| | | | | | | RELNOTES: objc_* rules can use structured_resources -- MOS_MIGRATED_REVID=88337360
* Populate a new local repository with the files, not dirGravatar Kristina Chodorow2015-03-11
| | | | | | | | | | | | Before, new_local_repository would create a symlink with the basename of the directory being linked to. For example, on my machine the JDK is in a directory named "jdk8", so the BUILD file had to prefix all of the files with "jdk8/". By symlinking the _contents_ of "path" instead of the basename of "path", the same BUILD file can be used no matter what the directory containing the JDK is called. -- MOS_MIGRATED_REVID=88333728
* Glob documentation is updated.Gravatar Googler2015-03-11
| | | | | -- MOS_MIGRATED_REVID=88325408
* BazelFilegroupRule is documented.Gravatar Googler2015-03-11
| | | | | -- MOS_MIGRATED_REVID=88322388
* Added Eclipse project configuration for BazelGravatar Damien Martin-Guillerez2015-03-11
| | | | | | | | | | | | This add the eclipse project configuration. To use it, first do a `./bootstrap_test.sh all` then import the Eclipse project in the Bazel directory. On my mac using Eclipse Luna configured with a JDK 8 it still displays errors on truth's isEmpty() method on collections. We Might need to tweak a bit the java configuration for it to work nicely. -- MOS_MIGRATED_REVID=88321458
* Do not require a WORKSPACE file to load the external pkgGravatar Kristina Chodorow2015-03-11
| | | | | -- MOS_MIGRATED_REVID=88277570
* Record statistics about dirty output files detected in the output tree.Gravatar Miguel Alcon Pinto2015-03-11
| | | | | -- MOS_MIGRATED_REVID=88257621
* Compiling protos should generate coverage files(.gcno) if in coverage mode.Gravatar Googler2015-03-11
| | | | | -- MOS_MIGRATED_REVID=88236380
* Document Bazel's java_{binary,library,plugin,import} rules.Gravatar Laszlo Csomor2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88226575
* Misc Skylark cleanups and small featuresGravatar Francois-Rene Rideau2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88224368
* Allow ios_test to override the GCOV environment variableGravatar Daniel Wagner-Hall2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88218457
* Open-source ijar's testsGravatar Damien Martin-Guillerez2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88210083
* Make the BE docgen's code a bit nicer.Gravatar Laszlo Csomor2015-03-10
| | | | | | | | | Remove unused section (Generating rules) and simplify the code that reads basic rule definitions (name, type, family) in for example: <!-- #BLAZE_RULE (NAME = cc_binary, TYPE = BINARY, FAMILY = C / C++) --> -- MOS_MIGRATED_REVID=88200584
* A minor documentation change in OutputGroupProvider.Gravatar Lukacs Berki2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88198589
* Force log flush at the end of a command execution.Gravatar Miguel Alcon Pinto2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88160544
* Increase exception specificity in getPackageGravatar Mark Schaller2015-03-10
| | | | | | | | | | | | The package resolver calls getValueOrThrow in its getPackage method. This call can throw an exception, and a year ago, the exception could be multiple different subtypes of NoSuchThingException. Subsequently, we made it so that only NoSuchPackageException could be thrown, but the exception type specified in this call site remained the more general supertype. -- MOS_MIGRATED_REVID=88154358
* Skylark: Show ordering when pretty-printing sets.Gravatar Laurent Le Brun2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88149329
* RELNOTES: Expose getWorkspaceName as ctx.workspace_name in Skylark.Gravatar Han-Wen Nienhuys2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88137421
* Exempt Bazel WORKSPACE rules from constraint checking.Gravatar Greg Estren2015-03-10
| | | | | | | RELNOTES: -- MOS_MIGRATED_REVID=88129488
* Change workspace_root to be SOURCE_ROOT, so that AppCode worksGravatar Googler2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88117266