aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* Make AarGeneratorAction deterministic by zeroing zip entry timestamps.Gravatar Nicholas Lativy2016-05-17
| | | | | | | | ZipOutputStream#putNextEntry(ZipEntry) sets the modification time to the current time if no time is set on the ZipEntry passed to it. -- MOS_MIGRATED_REVID=122436300
* Add deprecation warning for --objc_generate_debug_symbols.Gravatar Dmitry Shevchenko2016-05-17
| | | | | | | RELNOTES: --objc_generate_debug_symbols is now deprecated. -- MOS_MIGRATED_REVID=122432600
* Adds information about resources referenced from AndroidManifest.xml toGravatar Alex Humesky2016-05-17
| | | | | | | the apk manifest. -- MOS_MIGRATED_REVID=122431761
* Always unzip paths ending in / as directoriesGravatar Kristina Chodorow2016-05-17
| | | | | | | | | | | | | Does file type mean nothing to people? Fixes #1263, also made some code hygiene improvements: * Added some tests. * Broke a java_test out of lib/BUILD. * Renamed ZipFunction so it doesn't look like a child of SkyFunction. -- MOS_MIGRATED_REVID=122431322
* Release 0.2.3 (2016-05-10)Gravatar Bazel Release System2016-05-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Baseline: 5a2dd7a Incompatible changes: - All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles. Furthermore, if a Bazel project does not provide a workspace name in the WORKSPACE file, Bazel will now default to using __main__ as the workspace name (instead of "", as previously). The repository's runfiles will appear under x.runfiles/__main__/. - Bazel does not embed protocol buffer-related rules anymore. - It is now an error for a cc rule's includes attribute to point to the workspace root. - Bazel warns if a cc rule's includes attribute points out of third_party. - Removed cc_* attributes: abi / abi_deps. Use select() instead. New features: - select({"//some:condition": None }) is now possible (this "unsets" the attribute). Important changes: - java_import now allows its 'jars' attribute to be empty. - adds crunch_png attribute to android_binary - Replace --java_langtools, --javabuilder_top, --singlejar_top, --genclass_top, and --ijar_top with java_toolchain.{javac,javabuilder,singlejar,genclass,ijar} - External repository correctness fix: adding a new file/directory as a child of a new_local_repository is now noticed. - iOS apps are signed with get-task-allow=1 unless building with -c opt. - Generate debug symbols (-g) is enabled for all dbg builds of objc_ rules. - Bazel's workspace name is now io_bazel. If you are using Bazel's source as an external repository, then you may want to update the name you're referring to it as or you'll begin seeing warnings about name mismatches in your code. - Fixes integer overflow in J2ObjC sources to be Java-compatible. - A FlagPolicy specified via the --invocation_policy flag will now match the current command if any of its commands matches any of the commands the current command inherits from, as opposed to just the current command. - The key for the map to cc_toolchain_suite.toolchains is now a string of the form "cpu|compiler" (previously, it was just "cpu"). - Fix interaction between LIPO builds and C++ header modules. - Ctrl-C will now interrupt a download, instead of waiting for it to finish. - Proxy settings can now be specified in http_proxy and https_proxy environment variables (not just HTTP_PROXY and HTTPS_PROXY). - Skylark targets can now read include directories from ObjcProvider. - Expose parameterized aspects to Skylark. - Support alwayslink cc_library dependencies in objc binaries. - Import cc_library dependencies in generated Xcode project.
* Trim whitespace off of wc resultGravatar Kristina Chodorow2016-05-16
| | | | | | | Apparently Darwin's wc has a slightly different format. Fixes #1267. -- MOS_MIGRATED_REVID=122419982
* Prototype for remote execution using gRPC and Netty transportGravatar Alpha Lam2016-05-16
| | | | | | | | | | | | | | | | | | | This change implements a remote worker that executes work (build or test). Bazel will be a client of the remote worker. The communication uses gRPC and Netty as transport. A single remote worker has little advantage over running locally. Additional infrastructure is needed to run workers on multiple machines and distributing the work among them. This change provides the basic building blocks for a distributed build farm. (Mainly reformatting changes compared to https://bazel-review.googlesource.com/3110, some BUILD file changes.) -- Change-Id: If7d285444ef42a6823b59443af17b61b04b9ce6a Reviewed-on: https://bazel-review.googlesource.com/#/c/3110/ MOS_MIGRATED_REVID=122376861
* Memory Optimizations:Gravatar Googler2016-05-16
| | | | | | | | * Cache the FullyQualifiedName instances. Due to a very high number of duplicated resource keys, all FullyQualifiedNames should be effectively interned. * Presume xliff in all resources. Inlining the xmlns is a bit costly. -- MOS_MIGRATED_REVID=122375955
* Honor a whitelist of dx flags in incremental dexingGravatar Googler2016-05-16
| | | | | -- MOS_MIGRATED_REVID=122342484
* Adds configuration fragment requirements for intellij_info_aspect.Gravatar Michael Staib2016-05-16
| | | | | | | | | | | | | In the near future, aspect RuleContexts will enforce that they only access the configuration fragments they have declared as required, in order to prepare for the eventual migration to dynamic configurations (where only configuration fragments which are actually necessary for a particular build are loaded for that build). This change adds those declarations to intellij_info_aspect. -- MOS_MIGRATED_REVID=122337003
* Global cleanup change.Gravatar Googler2016-05-16
| | | | | -- MOS_MIGRATED_REVID=122312325
* Adds configuration fragment requirements for AndroidNeverlinkAspect.Gravatar Michael Staib2016-05-16
| | | | | | | | | | | | | In the near future, aspect RuleContexts will enforce that they only access the configuration fragments they have declared as required, in order to prepare for the eventual migration to dynamic configurations (where only configuration fragments which are actually necessary for a particular build are loaded for that build). This change adds those declarations to AndroidNeverlinkAspect. -- MOS_MIGRATED_REVID=122296909
* Adds configuration fragment requirements for J2ObjcAspect.Gravatar Michael Staib2016-05-16
| | | | | | | | | | | | | In the near future, aspect RuleContexts will enforce that they only access the configuration fragments they have declared as required, in order to prepare for the eventual migration to dynamic configurations (where only configuration fragments which are actually necessary for a particular build are loaded for that build). This change adds those declarations to J2ObjcAspect. -- MOS_MIGRATED_REVID=122296270
* Stop converting temporary direct deps to a set. In almost all cases, this ↵Gravatar Janak Ramakrishnan2016-05-16
| | | | | | | conversion is unnecessary and wasteful. In the remaining cases, the set conversion can be explicit. -- MOS_MIGRATED_REVID=122294939
* Speed Optimizations:Gravatar Googler2016-05-16
| | | | | | | | | * Adds threading to the AndroidDataWriter and AndroidDataSerializer. * Changes to a BufferedWriter for the Writer (turns out it's faster for string writing.) * Added buffers to the serializer reading. -- MOS_MIGRATED_REVID=122280993
* Update JavaDoc for class Artifact.Gravatar Rumou Duan2016-05-16
| | | | | -- MOS_MIGRATED_REVID=122261549
* Uses long in portable_sysctlbyname instead of jlong. Fixes #1249. Fixes #1254.Gravatar Yue Gan2016-05-16
| | | | | -- MOS_MIGRATED_REVID=122257999
* Print a proper error when calling a rule from a .bzl fileGravatar Laurent Le Brun2016-05-16
| | | | | -- MOS_MIGRATED_REVID=122251175
* Improve pass-through during buildGravatar Klaus Aehlig2016-05-13
| | | | | | | | | | | | | If tests are run with --test_output=streamed, output has to be passed through before the end of the (overall) build. In this situation, enforcing a line-end to redraw the status bar messes up the output that is streamed through. Therefore, buffer stdout/stderr to full lines and pass them through without extra newlines added. -- Change-Id: I52d5dfbd1cb30a6ce2d7d2fd34658a606abcc277 Reviewed-on: https://bazel-review.googlesource.com/#/c/3620 MOS_MIGRATED_REVID=122248012
* Rollback of commit 7f339de7feb071d790ecbca1c346244f5794a7e3.Gravatar Greg Estren2016-05-13
| | | | | | | | | | | | | | | | | *** Reason for rollback *** This is breaking ~1,000 tests in the latest Blaze nightly: [] Per sheriff policy, we need to either roll back or provide a quick fix tonight. *** Original change description *** Optimize hotspot in DependencySet.process(). -- MOS_MIGRATED_REVID=122220429
* Fix wrong method accessor in "this dep isGravatar Greg Estren2016-05-13
| | | | | | | allowed but with a warning" messages. -- MOS_MIGRATED_REVID=122194162
* Support NDK r11 in bazelGravatar Alex Humesky2016-05-13
| | | | | | | RELNOTES: Added supported for Android NDK revision 11 -- MOS_MIGRATED_REVID=122181286
* Finally remove the android_jack attribute from android_sdk.Gravatar Michael Staib2016-05-13
| | | | | | | | | Deletes the now-useless android_jack attribute; its functionality has already been turned off, so there is not much to remove besides the attribute definition. -- MOS_MIGRATED_REVID=122171309
* Make CppConfiguration fragment available from CcToolchainProvider.Gravatar Googler2016-05-13
| | | | | -- MOS_MIGRATED_REVID=122170387
* Fix NullPointerException when using android resource shrinking with an ↵Gravatar Andrew Pellegrini2016-05-12
| | | | | | | incomplete primary resource container. -- MOS_MIGRATED_REVID=122160699
* Improvements to zipper extraction support (x option):Gravatar Rumou Duan2016-05-12
| | | | | | | | | | 1. Add ability to specify relative output directory through -d option. 2. Add ability to specify a list of archive entries to extract from the zip file. Fixes #630. -- MOS_MIGRATED_REVID=122159723
* Refactoring: Introduced AttributeValueSource to handle attribute name ↵Gravatar Florian Weikert2016-05-12
| | | | | | | | | | | | validation and conversion for different types of attributes. Two reasons for this change: 1. These tasks shouldn't be the business of SkylarkRuleClassFunctions which previously handled such things. 2. With unknown commit we have to take care of three different types of attributes (normal vs. late-bound vs. computed default), which means that a boolean argument is no longer sufficient. -- MOS_MIGRATED_REVID=122136679
* apple_binary creates _lipo.a (multi-architecture archive library)Gravatar Chris Parsons2016-05-12
| | | | | -- MOS_MIGRATED_REVID=122134847
* Setting a year length to 365 days.Gravatar Googler2016-05-12
| | | | | -- MOS_MIGRATED_REVID=122115984
* Allow modules to inject a custom AttributeContainer.Gravatar Janak Ramakrishnan2016-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | Rollback of commit cda4b4eae0c495a8f90f2a70a8db46e34062ee26. *** Reason for rollback *** Roll-forward with fixes (see ExternalPackageBuilder). *** Original change description *** Automated [] rollback of commit 178a3dfda8bf72abf22758597a90a4afb8eed181. *** Reason for rollback *** Broke ci.bazel.io. See #1234. *** Original change description *** Allow modules to inject a custom AttributeContainer. -- MOS_MIGRATED_REVID=122100417
* Add a simple e2e app build test for swift_library.Gravatar Dmitry Shevchenko2016-05-12
| | | | | -- MOS_MIGRATED_REVID=122099968
* Refactor Blaze command line construction to allow for greater flexibility ↵Gravatar Eric Fellheimer2016-05-12
| | | | | | | and separation of concerns. -- MOS_MIGRATED_REVID=122067150
* Style cleanups.Gravatar Damien Martin-Guillerez2016-05-12
| | | | | -- MOS_MIGRATED_REVID=122058951
* Introducing SpawnActionTemplate, a stub action for TreeArtifacts at analysis ↵Gravatar Rumou Duan2016-05-12
| | | | | | | time that can expand into a list of SpawnActions operating on associated TreeFileArtifacts inside TreeArtifacts at execution time. -- MOS_MIGRATED_REVID=122056131
* Skylark: allow_files can now accept a string list argumentGravatar Laurent Le Brun2016-05-12
| | | | | -- MOS_MIGRATED_REVID=122052644
* Add feature to selectively disable Blaze's cc include scanner.Gravatar Googler2016-05-12
| | | | | -- MOS_MIGRATED_REVID=122052211
* Remove return value from ctx.file_action functionGravatar Laurent Le Brun2016-05-12
| | | | | | | It was useless anyway. -- MOS_MIGRATED_REVID=122051899
* Optimize hotspot in DependencySet.process().Gravatar Googler2016-05-12
| | | | | -- MOS_MIGRATED_REVID=122050015
* Make bootstrap scripts sh scriptsGravatar Klaus Aehlig2016-05-11
| | | | | | | | | | | | | The simple replacement scripts for for build-runfiles and process-wrapper do not use any bash-specific feature. Hence we can make then scripts for /bin/sh which has the advatange that that path is POSIX mandated, wheras bash could be installed anywhere on the system. -- Change-Id: I933d04be89e3c9ffc5673d8778b4754782cc4bdd Reviewed-on: https://bazel-review.googlesource.com/#/c/3601 MOS_MIGRATED_REVID=122046251
* Make create_embedded_tools.sh an sh scriptGravatar Klaus Aehlig2016-05-11
| | | | | | | | | | | | This script is called directly (and not as an argument to the shell), hence the #!-line needs to be correct. As the script does not use any bash-specific feature, we can maintain it as a script for the POSIX shell, which has the advantage that the path is canonical. -- Change-Id: Id1d1d0a4f4516c91fa25cf2402dda5190e618166 Reviewed-on: https://bazel-review.googlesource.com/#/c/3602 MOS_MIGRATED_REVID=122046234
* On FreeBSD, don't assume bash to be installed under /binGravatar Klaus Aehlig2016-05-11
| | | | | | | | | | Instead, take the path from the environment, if provided, otherwise use the path /usr/local/bin/bash of the default installation. -- Change-Id: Ida48967a2dc9b4ed321959b140391b3d44844035 Reviewed-on: https://bazel-review.googlesource.com/#/c/3600 MOS_MIGRATED_REVID=122045593
* Remove the disable_pbh feature again.Gravatar Googler2016-05-11
| | | | | -- MOS_MIGRATED_REVID=122044135
* Refactor ios_split_cpu to be apple_split_cpu, in preparation for using it to ↵Gravatar Chris Parsons2016-05-11
| | | | | | | | | specify platform mutli_cpu splits other than on ios_multi_cpu (such as a split on watchos) No users should be manually specifying this flag, so this shouldn't break anyone... -- MOS_MIGRATED_REVID=122037152
* cc_configure: correctly detect 32/64 bits CPU for LinuxGravatar Damien Martin-Guillerez2016-05-11
| | | | | | | | | It is now consistent with CPU.java Fixes #1251. -- MOS_MIGRATED_REVID=122036487
* Reconcile cc and objc default compiler flags in the crosstool.Gravatar Cal Peyser2016-05-11
| | | | | -- MOS_MIGRATED_REVID=122035585
* Action configs are activated like features (instead of being activated by ↵Gravatar Cal Peyser2016-05-11
| | | | | | | default). Action configs can imply features. -- MOS_MIGRATED_REVID=122032003
* Re-enable a test on Windows.Gravatar Dmitry Lomov2016-05-11
| | | | | -- MOS_MIGRATED_REVID=122031687
* Stop catching RuntimeException. This made the errors in issue #1234 more ↵Gravatar Janak Ramakrishnan2016-05-11
| | | | | | | confusing. And we should never catch RuntimeException unless we're about to crash. -- MOS_MIGRATED_REVID=122031190
* Dynamic configurations: have HostTransition just clone theGravatar Greg Estren2016-05-11
| | | | | | | | | | | | | | | original options if they're already from the host. This fixes an obscure incompatibility between Bazel's flag invocation policy infrastructure and multiple host configurations. In short, when multiple host configurations are possible, policy settings may not get consistently applied. Bazel invocation policies: https://github.com/bazelbuild/bazel/blo[]d24e2b69789ea54762ab034fdafc205cdcecea5/src/main/protobuf/invocation_policy.proto -- MOS_MIGRATED_REVID=122014371
* Print an error message when the wrong type of input is given as an aspectGravatar Kristina Chodorow2016-05-11
| | | | | | | | | And add a test. Another issue I found while attempting to reproduce #1228, but not actually a fix for that bug. -- MOS_MIGRATED_REVID=121998625