aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* Make checking of lambda dump directory accept relative path.Gravatar cnsun2017-05-23
| | | | | | | | | | | | | | Before, we use Path.equals(Object), which will fail if we use relative path in the system property. Now I use Files.isSameFile which will check two paths point to the same file system resource. In https://github.com/bazelbuild/bazel/commit/69e855c7b0f0f7899a69a882cba0abd304233c97, I introduce the check to test whether setting the system property for lambda meta factory succeeds. However, the check does not consider relative path, which will always fail. RELNOTES: n/a PiperOrigin-RevId: 156796457
* Add CC_FLAGS to the macros that pull in the CcToolchainProvider for genrulesGravatar Googler2017-05-23
| | | | | RELNOTES: Using $(CC_FLAGS) in a GenRule adds a dependency to the c++ toolchain PiperOrigin-RevId: 156770639
* Remove outdated comment.Gravatar ajmichael2017-05-23
| | | | | RELNOTES: None PiperOrigin-RevId: 156770067
* Add deprecation warning if the "legacy" manifest merger is used, now that ↵Gravatar apell2017-05-23
| | | | | | | the default has been switched to "android". RELNOTES: The 'legacy' Android manifest merger is deprecated. Please upgrade to the 'android' manifest merger, which is the same merger used by Gradle. https://developer.android.com/studio/build/manifest-merge.html PiperOrigin-RevId: 156765307
* Wrap ar invocations for osx bazel crosstool.Gravatar cparsons2017-05-23
| | | | | | | | | This: 1. Forces ar invocations to go through xcrunwrapper (thus having the environment variables set correctly so that the appropriate xcode is used) 2. Institutes a fix for non-hermeticism around object file timestamps. RELNOTES: None. PiperOrigin-RevId: 156759530
* If the target apple_binary is a loadable_bundle, always pass the ↵Gravatar kaipi2017-05-23
| | | | | | @loader_path/Frameworks rpath flag to the linker. PiperOrigin-RevId: 156759162
* Move the field name out of the FieldInitializerGravatar corysmith2017-05-23
| | | | | RELNOTES: None PiperOrigin-RevId: 156747534
* Fix ordering of -fPIC for PIC compiles in the LTOBackendActionGravatar Googler2017-05-23
| | | | | | | | | | For compiles that the CppConfiguration flags as needing PIC, the -fPIC option needs to be added after the other compile options so that it cannot be overridden (e.g. with a --copt). This is consistent with the way the CppCompileAction compile options are ordered. RELNOTES: None. PiperOrigin-RevId: 156746218
* Automated g4 rollback of commit c78c947e6a8cbb323304f872a3dcabb989a3d76b.Gravatar cpeyser2017-05-23
| | | | | | | | | | | | | | *** Reason for rollback *** Breaks android targets in the nightly - see [] *** Original change description *** Do not retain transitive data in AndroidLocalTestBase. The argument strings and artifacts were both transitive and flattened, causing O(N^2) memory consumption. PiperOrigin-RevId: 156745610
* Loosen java_library.exports and java_import.*Gravatar Stephen Twigg2017-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | java_library.exports and java_import.runtime_deps|exports|deps will now accept any label from a rule that has a JavaProvider declared provider. Note that java_library.deps|runtime_deps already had this feature and this simply extends that privilege. This relies on the fact that both those targets (via JavaCommon) are simply searching for jars via JavaProvider anyway. Added test for passing a custom Skylark rule (that provides a JavaProvider) can successfully be added to the deps, runtime_deps, and exports of java_library, java_import, and java_binary (where appropriate). Added integration tests for java_library.exports|runtime_deps (the basic sandwich already tests deps) and java_import.exports|runtime_deps. Note that custom Skylark rules are still unable to provide or propagate a JavaNativeLibraryProvider, which results from a cc dependency. Also, the deps argument for java_import is somewhat odd. Change-Id: I7b2c19c6b99516ce524e8c82193d0c73e2d66530 PiperOrigin-RevId: 156740729
* Extract determining which manifest merger to use (legacy v android) to a ↵Gravatar Googler2017-05-22
| | | | | | | separate method. This is so that android_local_test won't need access to the AndroidConfiguration fragment. RELNOTES: None PiperOrigin-RevId: 156740056
* Fix aspect processing when same dep appears in 2 attributes.Gravatar kaipi2017-05-22
| | | | | | If a target appeared in 2 different attributes, it is not processed twice, even if different aspects were applied to the different attributes. In that case, only one of the aspects is applied. This commit fixes this by checking which aspects have been applied to the target, instead of checking if the target was already processed. PiperOrigin-RevId: 156738275
* Clarify difference between sources and distribution archiveGravatar Klaus Aehlig2017-05-22
| | | | | | | | | | In the install instructions, explain that the distribution archive contains more files than a checkout of the source tree. It is a common mistake to believe that using a checkout of the source tree is equivalent to downloading a distribution archive. Change-Id: I13cc48f5efe93bd2593d7b74d1f7c6db19de74dc PiperOrigin-RevId: 156732571
* Fix URL in compile.sh error messageGravatar Klaus Aehlig2017-05-22
| | | | | | | | | Our web page has been reorganized. The instructions to compile from source are now on a page of its own. Update the link in the error message accordingly. Change-Id: Ica1187a893b911eca638c5535a3f9686a661fe6f PiperOrigin-RevId: 156731324
* Extract :cc_toolchain as constantGravatar hlopko2017-05-22
| | | | | | | | And while at it cleanup all the calls of CppHelper.getToolchain and CppHelper.getFdoSupport. RELNOTES: None. PiperOrigin-RevId: 156716291
* Fix Edit button style.Gravatar steren2017-05-22
| | | | | | | Fix #3028 tested: locally with ./scripts/serve-docs.sh PiperOrigin-RevId: 156674683
* Create a loadPackages() method that loads multiple packages simultaneously, ↵Gravatar carmi2017-05-22
| | | | | | | | | using multiple threads. The immediate upside is that if multiple packages load the same bzl file, that file will only be read once when using loadPackages(). RELNOTES: None PiperOrigin-RevId: 156621988
* Include input header files in CIdeInfoGravatar Googler2017-05-22
| | | | | | A precursor to prefetching source files outside the project. PiperOrigin-RevId: 156598992
* Expose javac jar in java_toolchain's skylark providerGravatar Googler2017-05-22
| | | | PiperOrigin-RevId: 156589908
* Keep annotations of default methods in interfaces during desugaring.Gravatar cnsun2017-05-22
| | | | | RELNOTES: n/a PiperOrigin-RevId: 156582965
* Add operator // for division.Gravatar laurentlb2017-05-22
| | | | | | | | In both Python 2 and Python 3, the operator // is used for int division. With Python 3, operator / is for float division. RELNOTES: None. PiperOrigin-RevId: 156582262
* Move Bazel Android WORKSPACE rule docs to Android family.Gravatar ajmichael2017-05-22
| | | | | RELNOTES: None PiperOrigin-RevId: 156578239
* Update the platform rule documentation to match the actual attribute names.Gravatar jcater2017-05-22
| | | | PiperOrigin-RevId: 156571671
* Turn the --explicit_jre_deps flag into a noop.Gravatar Googler2017-05-22
| | | | | | RELNOTES: Flag --explicit_jre_deps is now a noop. PiperOrigin-RevId: 156570342
* Fix attribute name so docs are generated properly.Gravatar jcater2017-05-22
| | | | PiperOrigin-RevId: 156558693
* Remote+BES: Stabilize command line flags.Gravatar buchgr2017-05-22
| | | | | | | | | | | | | | | | | | | | Update the command line flags used by remote execution/caching as well as the build event service (BES). Major changes: - Remote execution/caching and BES share flags for authentication and TLS. - Removed API Key authentication from BES, as it's not being used. - Add TLS support to BES upload. - Add --bes_project_id flag. If set, the value is propagated as part of BES lifecycle events. For reviewers: Start your review at CommonRemoteAndBesOptions, BuildEventServiceOptions and RemoteOptions. The other changes are mostly automatic IDE renames of fields and flag updates in shell script tests. RELNOTES: None. PiperOrigin-RevId: 156553857
* Avoid waste in registerNewlyDiscovered... when there aren't anyGravatar mschaller2017-05-22
| | | | | RELNOTES: None. PiperOrigin-RevId: 156553687
* Create new android_host_service_fixture rule.Gravatar ajmichael2017-05-22
| | | | | | | | | | | This rule specifies a host binary that is run as part of an android_instrumentation_test. It merely collects options, support APKs and the runfiles for the host binary and passes them along to the upcoming android_instrumentation_test rule. Note that this CL does _not_ install the rule, so this CL does not make it usable by anyone. Once the other android testing rules are ready, we will install them all. One small step towards https://github.com/bazelbuild/bazel/issues/903. RELNOTES: None PiperOrigin-RevId: 156553198
* gRPC is locking down access to internal classes, so remove refs to it.Gravatar Googler2017-05-22
| | | | | | | This value is unlikely to change in the near future, and we don't feel comfortable exposing it. You can force the size to be whatever you want, so the default value isn't really relevant. RELNOTES: n/a PiperOrigin-RevId: 156543600
* Fixes incorrectly-ordered arguments to calls to assertEqualsGravatar Googler2017-05-19
| | | | | | | | | | | | | | | [] This change has been automatically generated by an Error Prone check that detects incorrect argument ordering on calls to assertEquals-style methods. See [] Cleanup change automatically generated by javacflume/refactory Refactoring: third_party/java_src/error_prone/project/core/src/main/java/com/google/errorprone/bugpatterns/argumentselectiondefects:AssertEqualsArgumentOrderChecker_refactoring Tested: TAP --sample for global presubmit queue [] PiperOrigin-RevId: 156539781
* Don't join javabuilder classpath flagsGravatar cushon2017-05-19
| | | | | | | This avoids some string unnecessary string operations, and keeps command lines below the per-arg limit. PiperOrigin-RevId: 156514047
* Remove resourcejar handling from buildjarGravatar cushon2017-05-19
| | | | | | | singlejar is now used to add resources to library jars, so this code is unnecessary. PiperOrigin-RevId: 156473371
* Make the number of legacy globbing threads configurable. PackageFactory's ↵Gravatar nharmata2017-05-19
| | | | | | | hardcoded default of 100 isn't a good choice for all PackageLoader users. RELNOTES: None PiperOrigin-RevId: 156468439
* Fix compile project/file actions for scala.Gravatar Googler2017-05-19
| | | | | | | | Rather than including all of intellij-resolve in intellij-compile, calculate compilation artifacts for each custom language we support (as we already need to do for the other output groups). PiperOrigin-RevId: 156466315
* intellij-compile output group should request compilation artifacts fromGravatar Googler2017-05-19
| | | | | | transitive closure of targets. PiperOrigin-RevId: 156428233
* Expose the target map from Package.Gravatar carmi2017-05-19
| | | | | | | | This doesn't really expose new information, because one can iterate over the existing getTargets() and recreate the map. Moreover, the map is immutable, so there's no risk in returning it to the user. RELNOTES: None PiperOrigin-RevId: 156349797
* add an edit button on Documentation pagesGravatar Steren Giannini2017-05-19
| | | | | | | | I successfully tested the change by playing with Chrome DevTools on bazel.build, as I could not find instructions about how to run the site locally :(. Closes #2992. PiperOrigin-RevId: 156349018
* Share the signal handling code between linux-sandbox and process-wrapper.Gravatar philwo2017-05-19
| | | | PiperOrigin-RevId: 156347327
* Update install-ubuntu.mdGravatar MarkusTeufelberger2017-05-19
| | | | | | | | Fixed small grammatical error (sending this doc change through GH to demonstrate how this change process looks for a completely external contributor, see also https://github.com/bazelbuild/bazel/pull/2784) Closes #2786. PiperOrigin-RevId: 156342450
* Use $TEST_TMPDIR for test_interrupt_kills_child.Gravatar Janak Ramakrishnan2017-05-19
| | | | | | | Fixes #2938 where concurrently running tests can step on each other. Change-Id: I1d75dd323149c4f892f8d5a28c1abf9ff055abca PiperOrigin-RevId: 156340949
* Add toolchains data to RuleClass and RuleContext.Gravatar John Cater2017-05-19
| | | | | | | | Also expose both sides to Skylark. Part of #2219. Change-Id: I4d749dd9981fe33f75310acb0ec3927cff6f28fe PiperOrigin-RevId: 156340638
* Some fixes to process-wrapper / linux-sandbox.Gravatar philwo2017-05-19
| | | | | | | | | - Refactoring to share more code between the two programs. - Remove setuid() call in linux-sandbox. It was added due to a wrong understanding of what process-wrapper did in the beginning and unless someone installed linux-sandbox as a setuid binary, it was a no-op. - Switch to a new process group in linux-sandbox to avoid accidentally killing our parent. RELNOTES: None. PiperOrigin-RevId: 156332503
* PiperOrigin-RevId: 156331430Gravatar nharmata2017-05-19
|
* Remove the RTxtSymbolEntry in favor of the FieldInitializer class.Gravatar corysmith2017-05-19
| | | | | RELNOTES: None PiperOrigin-RevId: 156321468
* Fix Java class file name (must match class name).Gravatar Googler2017-05-19
| | | | PiperOrigin-RevId: 156315435
* Automated g4 rollback of commit e9607dc5e72668c3bf360307d99af4bddbdc38bc.Gravatar xingao2017-05-19
| | | | | | Roll forward CL 155634838 (Fix precondition check for java_runtime.javahome.) PiperOrigin-RevId: 156314544
* Adds ToolchainConstructor interface and implementations.Gravatar John Cater2017-05-19
| | | | | | | | | | ToolchainConstructor is used to create instances of ToolchainInfo, for toolchain-aware rule sets. Part of #2219. Change-Id: Iae4e519b156910cc28704b3ca5b11e57dd561107 PiperOrigin-RevId: 156303854
* Update bundled OpenJDK to azul-zulu-8.21.0.1-jdk8.0.131.Gravatar Philipp Wollermann2017-05-19
| | | | | | | | A mirror and source code are provided at the usual location: http://mirror.bazel.build/openjdk/index.html Change-Id: I081df934c2bda7e9cc03246dfbdeca75404acc97 PiperOrigin-RevId: 156302005
* Add new reasons for server restart: PID_FILE_BUT_NO_SERVER, SERVER_VANISHED ↵Gravatar janakr2017-05-17
| | | | | | and SERVER_UNRESPONSIVE, since it looks like these are happening with upsetting frequency in our new grpc world. PiperOrigin-RevId: 156271743
* Improve diagnostics. Report an error when we fail to register the lambda dumpGravatar cnsun2017-05-17
| | | | | | | | | | directory. This is achieved by checking InnerClassLambdaMetafactory.dumper's dumpDir. Also, if a user provides a dump folder, we verify whether the folder is empty. RELNOTES: n/a PiperOrigin-RevId: 156257767