aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Experimental java annotation support with unpredictable action ↵Gravatar Rumou Duan2016-07-28
| | | | | | | | | inputs/outputs in j2objc_library behind flag --experimental_j2objc_annotation_processing Also added flag --experimental_zip_tree_artifact to switch on and off the zipping implementation of tree artifact generation. -- MOS_MIGRATED_REVID=128586669
* JavaBuilder: Reintroduce the -extra_checks flag.Gravatar Philipp Wollermann2016-07-28
| | | | | | | Fixes #1570. -- MOS_MIGRATED_REVID=128585415
* Start worker processes with a clean environment, instead of accidentally ↵Gravatar Philipp Wollermann2016-07-28
| | | | | | | inheriting a copy of the server's environment. -- MOS_MIGRATED_REVID=128584538
* Clean up DependencyResolver's interface for the dynamic config migration and ↵Gravatar Greg Estren2016-07-28
| | | | | | | | | | | | | | | | | | | | for general readability. Major changes: - Remove the intermediate Attribute -> LabelAndConfiguration multimap (computed in resolveAttributes). Instead, feed discovered values directly into the final Attribute -> Dependency map via a new RuleResolver interface. - Remove all references to LabelAndConfiguration. The configuration is always the owning rule's configuration except for two special cases: late-bound attributes with splits and late-bound attributes with LateBoundDefault.useHostConfiguration. The original interface made this very unclear and required a lot of awkward and sometimes incorrect logic. The new interface only involves configurations for the cases that actually need them. - Remove an ugly hack caused by BuildConfiguration.evaluateTransition mixing poorly with LateBoundDefault.useHostConfiguration (https://github.com/bazelbuild/bazel/blo[]e172693c27f3efc95ed163e43a9f0a7a6fb4017/src/main/java/com/google/devtools/build/lib/analysis/DependencyResolver.java#L488). - Remove a hack that applies split transitions twice because of BuildConfiguration.evaluateTransition mixing poorly with late-bound split attributes (https://github.com/bazelbuild/bazel/blo[]e172693c27f3efc95ed163e43a9f0a7a6fb4017/src/main/java/com/google/devtools/build/lib/analysis/DependencyResolver.java#L319). This happens to be innocent now but won't be when nested splits are possible. - Solidifies the API contract for Attribute.LateBoundDefault.useHostConfiguration. - Applies clearer naming and more consistent ordering to method parameters. - Better documentation. This is all also prep work for dynamic split transitions. tl;dr: late-bound attributes are legitimately special. Treat them that way to make the rest of DependencyResolver cleaner and hack-free. -- MOS_MIGRATED_REVID=128582618
* Added instructions about using Bazel on WindowsGravatar Yun Peng2016-07-28
| | | | | -- MOS_MIGRATED_REVID=128582295
* Sets SONAME on shared objects in Android binaries.Gravatar Adam2016-07-28
| | | | | | | | | | Adds a linker flag to set the internal DT_SONAME. This fixes #1578 for SDK 24 and removes the warnings for previous SDKs. There is no need to set the linker flag for android_librarys that depend on native code, because the linker flag will be set by the android_binarys that depend on that android_library. Change-Id: I0d4fd78ffaf03c19ae3712bdeb28a52722a22f6f
* Opt out of building debian packages on darwinGravatar Yun Peng2016-07-27
| | | | | | | | | Fixes #1577 -- Change-Id: I81343d611490263bc7e16dedfbbc56f9f988f63d Reviewed-on: https://bazel-review.googlesource.com/#/c/4170 MOS_MIGRATED_REVID=128576630
* Mark //src/test/shell/bazel:experimental_ui_test as manualGravatar Damien Martin-Guillerez2016-07-27
| | | | | | | | This test is timeout flaky (#1560) and the flake seems like genuine. While waiting for a proper fix, deactivate this test on ci.bazel.io. -- MOS_MIGRATED_REVID=128571273
* Cleanup: use file_name_string method in tests.Gravatar Sasha Smundak2016-07-27
| | | | | -- MOS_MIGRATED_REVID=128565586
* Pass the coverage environment into tests using a nested set collected from ↵Gravatar Lukacs Berki2016-07-27
| | | | | | | the transitive closure instead of having a global environment in the configuration. -- MOS_MIGRATED_REVID=128559756
* Use a marker provider to determine of a rule is linked statically for the ↵Gravatar Lukacs Berki2016-07-27
| | | | | | | purposes of license checking instead of having a bespoke method in BuildConfiguration.Fragment and encoding knowledge about static linking in buildtool/ . -- MOS_MIGRATED_REVID=128557444
* java_proto_library strict deps: add attributes for gradual migrationGravatar Carmi Grushko2016-07-27
| | | | | | | | | Control strict-deps through a rule-level and a package-level attribute, allowing finer-grained migration in conjunction with a global flag. RELNOTES: java_proto_library: control strict-deps through a rule-level and a package-level attribute. -- MOS_MIGRATED_REVID=128542363
* Add README to original Bazel docs directory to point developers to the correctGravatar David Chen2016-07-27
| | | | | | | | | directory to make documentation changes. Bug: #579 -- MOS_MIGRATED_REVID=128533607
* Remove outdated commentGravatar Michajlo Matijkiw2016-07-27
| | | | | -- MOS_MIGRATED_REVID=128510907
* Move Bazel docs into versioned directory.Gravatar David Chen2016-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | * Move all Bazel docs (excluding main page, search page, and blog) into versions/master directory. * Replace all original pages with redirects. * Add Jekyll config with default_version setting to specify the default version to redirect docs to. * Add Jekyll config with version_prefix setting specific to pages under each version directory. * Update layouts to generate links to pages for the same version with the version_prefix. * Update Blaze release script to copy docs from third_party/bazel/site/versions/master Changes to follow this CL: * Separate navigation from layouts so that navigation can be versioned as well. * Add tool for cutting a release of Bazel docs and copies them into a new version directory. Bug: #579 -- MOS_MIGRATED_REVID=128510319
* Augment the QueryableGraph#get[BatchWithFieldHints] method to take in ↵Gravatar Nathan Harmata2016-07-27
| | | | | | | parameters conveying the requesting node (if any), the requested node(s), as well as a reason for the skyframe graph lookup. Alternate graph implementations may be interested in this information. -- MOS_MIGRATED_REVID=128496089
* Linker outputs can optionally be configured from the CROSSTOOL. Introduces ↵Gravatar Cal Peyser2016-07-27
| | | | | | | infrastructure to allow other artifact categories (such as debug symbols or compiler outputs) to be defined in other changes. -- MOS_MIGRATED_REVID=128495797
* Fixed JavaIoFileSystem.setLastModifiedTime to actually match its documented ↵Gravatar Chris Parsons2016-07-27
| | | | | | | behavior (passing -1 modified time should use system time). -- MOS_MIGRATED_REVID=128489592
* J2ObjC wrapper support for java annotation support with unpredictable ↵Gravatar Rumou Duan2016-07-27
| | | | | | | inputs/outputs. -- MOS_MIGRATED_REVID=128485838
* Adjust visibility of ComputedDefault dependenciesGravatar Mark Schaller2016-07-27
| | | | | | | Also clarify that the returned list is immutable. -- MOS_MIGRATED_REVID=128482720
* Change android resource shrinking to use the standard Proguard jar artifact.Gravatar Andrew Pellegrini2016-07-27
| | | | | | | | * Re-add proguard mapping file handling to ResourceShrinker to handle the fully Proguarded code, potentially including an obfuscation step. * Update android_binary to provide the resource shrinker with the standard Proguard jar and obfuscation mapping instead of a custom built shrunk jar. -- MOS_MIGRATED_REVID=128476602
* Typo fixes in markdown and javadoc as suggested by intellij typo inspection.Gravatar Googler2016-07-27
| | | | | -- MOS_MIGRATED_REVID=128476121
* Moves exports_manifest attribute to AndroidLibraryBaseRule instead ofGravatar Googler2016-07-27
| | | | | | | | | | AndroidResourceSupportRule. This removes the exports_manifest attribute from AndroidBinaryBaseRule and its children. RELNOTES: Removes exports_manifest attribute from android_binary rule. -- MOS_MIGRATED_REVID=128472120
* Refactor CppLinkAction to construct its command line using the crosstool ↵Gravatar Cal Peyser2016-07-27
| | | | | | | instead of a hardcoded switch. Add action configs to CppConfiguration for each link type. -- MOS_MIGRATED_REVID=128470872
* Improve resource DataKey serialization perf a bitGravatar Googler2016-07-27
| | | | | | | | | | | | | | | | Address the TODO about using toString in the TreeMap comparator by using DataKey#compareTo. Also, use the entrySet to iterate K-V pairs instead of calling get(key). Synthetic benchmark w/ 10000 random keys: Before: 260ms to serialize After: 33ms to serialize Less of a difference when there are few keys. -- MOS_MIGRATED_REVID=128469407
* Rewrite the extra action info files if the data within them changes.Gravatar Lukacs Berki2016-07-27
| | | | | -- MOS_MIGRATED_REVID=128468615
* Added deploying Bazel debian source package into release processGravatar Yun Peng2016-07-27
| | | | | | | -- Change-Id: I4926b820dbab3c218ad6ead8bc6eb7b781dedd00 Reviewed-on: https://bazel-review.googlesource.com/#/c/4162 MOS_MIGRATED_REVID=128465857
* Build Bazel debian source package using BazelGravatar Yun Peng2016-07-27
| | | | | | | -- Change-Id: I8c0b6adf08a4ca64ad41e0454cb30842c133fa22 Reviewed-on: https://bazel-review.googlesource.com/#/c/4161 MOS_MIGRATED_REVID=128465441
* Make 3-arg form of getattr() work when third arg is NoneGravatar Jon Brandvein2016-07-27
| | | | | -- MOS_MIGRATED_REVID=128463789
* Restructured installation instructions.Gravatar Dmitry Lomov2016-07-27
| | | | | | | The structure is now: Platform, installation method. -- MOS_MIGRATED_REVID=128461668
* Add Skylark definitions of {new_,}git_repository.Gravatar Nelson Elhage2016-07-27
| | | | | | | -- Change-Id: I2c5f09b10430963a1668ec7c842992bc89bfd7b4 Reviewed-on: https://bazel-review.googlesource.com/#/c/3982 MOS_MIGRATED_REVID=128453417
* cpp: fix documentation of return value of GetNullaryOption() functionGravatar Thiago Farina2016-07-26
| | | | | | | | | | GetNullaryOption() is a function whose return type is bool, which can only return two possible values, true or false, and thus can not return NULL. -- Change-Id: If9fc622d7132b15268bdcc76aed8d04fe5b92bc7 Reviewed-on: https://bazel-review.googlesource.com/#/c/4140/2 MOS_MIGRATED_REVID=128448779
* Add the method to set zip64 extension attribute. Eliminate useless test caseGravatar Sasha Smundak2016-07-26
| | | | | | | class in zip_headers_test. -- MOS_MIGRATED_REVID=128444529
* Enable the Java launcher by defaultGravatar Liam Miller-Cushon2016-07-26
| | | | | -- MOS_MIGRATED_REVID=128421303
* Re-arrange --{host_,}java_launcherGravatar Liam Miller-Cushon2016-07-26
| | | | | -- MOS_MIGRATED_REVID=128405574
* Add SVG as an analyzed file type to ResourceShrinker.javaGravatar Andrew Pellegrini2016-07-26
| | | | | -- MOS_MIGRATED_REVID=128401550
* Slim down RuleClass#createUncheckedGravatar Michajlo Matijkiw2016-07-26
| | | | | -- MOS_MIGRATED_REVID=128391351
* Remove a few unused methods from {Dep,Unvalidated}AndroidDataGravatar Googler2016-07-26
| | | | | | | | | | | The new merger doesn't use addToResourceSet(), modify(), etc. Also, since modify() is unused, remove the DirectoryModifier objects and reduce BUILD deps. -- MOS_MIGRATED_REVID=128387448
* Computed default "is_executable" doesn't need to declareGravatar Greg Estren2016-07-26
| | | | | | | its deps on "outs" and "executable" because they're not configurable. -- MOS_MIGRATED_REVID=128385721
* Store genquery's scope of accessible labels as a Label->Target map.Gravatar Googler2016-07-26
| | | | | | | | | | | Resolving them shows up as a hotspot in genquery-heavy builds. Also fix a bug where we would throw a RuntimeException rather than a checked exception if the query tried to access something outside this scope. -- MOS_MIGRATED_REVID=128379113
* Placate the compiler.Gravatar Sasha Smundak2016-07-26
| | | | | | | | | | | | Address the following warnings from the compiler: * "control reaches end of non-void function [-Wreturn-type]" * "dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]" * "ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]" * "ignoring return value of 'int ftruncate(int, __off_t)', declared with attribute warn_unused_result [-Wunused-result]" * "ignoring return value of 'int dup(int)', declared with attribute warn_unused_result [-Wunused-result]" -- MOS_MIGRATED_REVID=128375065
* Rename TreeFileArtifact-related functions to make them more self-explanatory ↵Gravatar Rumou Duan2016-07-26
| | | | | | | and some minor clean-ups. -- MOS_MIGRATED_REVID=128371398
* Fix crash when updating collections while iterating over them in comprehensionsGravatar Jon Brandvein2016-07-26
| | | | | | | This makes For clauses have the same semantics as For loops. -- MOS_MIGRATED_REVID=128368124
* Call precomputed() on static CharMatcher instances.Gravatar Googler2016-07-26
| | | | | | | Removes a noticeable hotspot from LabelValidator.validateTargetName(). -- MOS_MIGRATED_REVID=128359980
* Allow lists to be modified while a For loop is iterating over them.Gravatar Jon Brandvein2016-07-26
| | | | | | | | This does not affect the loop's iteration. Similar work is needed for comprehension For clauses. -- MOS_MIGRATED_REVID=128357769
* Optimize Rule.getLabels(void) to avoid ImmutableSortedSet.construct().Gravatar Googler2016-07-26
| | | | | | | | | This is called only from Package$Builder.checkForInputOutputConflicts() which just wants the name of each input label; there's no need to sort or deduplicate. -- MOS_MIGRATED_REVID=128355375
* Rollback of commit b669406789dd452161875d407d0ce6a3502de5f6.Gravatar Damien Martin-Guillerez2016-07-25
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks TensorFlow and rules_go on ci.bazel.io Fixes #1562. Fixes #1558. *** Original change description *** Refactor CppLinkAction to construct its command line using the crosstool instead of a hardcoded switch. Add action configs to CppConfiguration for each link type. -- MOS_MIGRATED_REVID=128352435
* Bump the test size of //src/test/shell/bazel:bazel_apple_testGravatar Damien Martin-Guillerez2016-07-25
| | | | | | | | | Fixes #1561. -- Change-Id: I0527edaca9d429157e0db45e4406288ade12e369 Reviewed-on: https://bazel-review.googlesource.com/#/c/4157 MOS_MIGRATED_REVID=128351878
* --Gravatar Luis Fernando Pino Duque2016-07-25
| | | | MOS_MIGRATED_REVID=128348972
* Bump the size of //src/test/shell/bazel:execroot_testGravatar Damien Martin-Guillerez2016-07-25
| | | | | | | | | | | It was timeout flaky on ci.bazel.io Fixes #1559. -- Change-Id: Ie116fd70cf167ac152782f766b9ae541cc041ab4 Reviewed-on: https://bazel-review.googlesource.com/#/c/4156 MOS_MIGRATED_REVID=128347912