aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* Enable exception handing for built-in windows headersGravatar Peter Foley2016-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INFO: From Executing genrule //src/main/native:windows_jni: C:\tools\msys64\tmp\bazel_7uQBlyR9\out\execroot\bazel>call "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/VCVARSALL.BAT" amd64 windows_error_handling.cc C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(359): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc windows_file_operations.cc C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(359): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc windows_processes.cc C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\iosfwd(343): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc -- Change-Id: I6f93a4dbb1be42fa5bea221402fb71a830960cf6 Reviewed-on: https://bazel-review.googlesource.com/#/c/6130 MOS_MIGRATED_REVID=135458066
* Allow rules to consume CcLinkParamsProviders provided by Skylark rules.Gravatar Dmitry Lomov2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135457049
* Change allowedRuleClasses/mandatoryProviders semantics to "either-or" ↵Gravatar Dmitry Lomov2016-10-07
| | | | | | | | | | instead of "and". Also allow native rules to require declared providers on their dependencies. -- MOS_MIGRATED_REVID=135454750
* remove inaccurate sentence from DependencyResolver commentsGravatar Benjamin Peterson2016-10-07
| | | | | | | | | | | | The comments for DependencyResolver.dependentNodeMap implied that visiting of visibility attributes could be controlled with a visitVisibility parameter. However, no such parameter exists, and the code unconditionally visits visibility attributes. -- Change-Id: Iecf803aed771423b2f25e911c041e0017b77d29d Reviewed-on: https://bazel-review.googlesource.com/#/c/6211/ MOS_MIGRATED_REVID=135454173
* Update Error Prone to 2.0.13Gravatar Liam Miller-Cushon2016-10-07
| | | | | | | | http://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/2.0.13/error_prone_core-2.0.13.jar http://repo1.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.0.13/error_prone_annotations-2.0.13.jar http://repo1.maven.org/maven2/com/google/errorprone/error_prone_annotation/2.0.13/error_prone_annotation-2.0.13.jar Change-Id: I4e8e8d82161860f9c758c0a957b0ccab7cbcb1bb
* Patches to compile against muslGravatar Lukacs T. Berki2016-10-07
| | | | This is a partial import of the patch 8ba828096961b72c8eb93f327719c5de8349581c by Steven Dee <steve@smartercode.net>. The patch cannot be imported in one piece because we store the third-party libraries in the Bazel repository separately from the actual source code of Bazel.
* Rollback of commit 0e9a1b2d51f9e03f4493e52d23cb3efc568be59f.Gravatar Googler2016-10-07
| | | | | | | | | | | | | | *** Reason for rollback *** [] hasn't released unknown commit yet. We need to keep the old behavior until then. *** Original change description *** Stop consulting the environment for "originating user" information. -- MOS_MIGRATED_REVID=135441115
* Stop consulting the environment for "originating user" information.Gravatar Googler2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135422529
* Remove duplicated "Can be None". The allowReturnNones = true generates "MayGravatar Adam Michael2016-10-07
| | | | | | | | | return `None`.". Fixes https://github.com/bazelbuild/bazel/issues/1893 -- MOS_MIGRATED_REVID=135419555
* Rollback of commit f21d35ead25167ca7191229c7a365ccdf1a2550e.Gravatar Googler2016-10-07
| | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** With this approach, the R.class winds up in the filtered jar because its origin isn't among the "normal" Java sources. I'll have to be a little smarter, but start with rolling this back. *** Original change description *** Support srcjar files in filtered gen jar. If a java_library has any srcjar files in its sources attribute, the output of these would be discarded. To make it more robust, invert the jar filter to keep everything *except* source artifact java files. Previously, we would build a manifest containing all the generated java files and use that to filter. This should also be ever so slightly faster since we can skip an action. -- MOS_MIGRATED_REVID=135406849
* Handles missing classes.jar in aar_import gracefully, by creating an empty ↵Gravatar Adam Michael2016-10-07
| | | | | | | jar file instead of crashing Bazel. -- MOS_MIGRATED_REVID=135405636
* Bridged --experimental_repository_cache value to HttpDownloader. Created ↵Gravatar Jingwen Chen2016-10-07
| | | | | | | | | | | | | | | HttpCache skeleton to implement caching logic of HttpDownloadValues as the first step (more types of caches will come later). Having RepositoryDelegatorFunction initialize the cache in the respective RepositoryFunction handlers decouples the cache implementation from itself. It delegates the choice of Cache classes to the respective RepositoryFunctions, and let them decide what to do with the PathFragment of the cache location. Continuation of commit 239d995e359ab38a9b5c83eff4d31684b4fc5b9c. A follow up CL will contain the implementation of HttpCache. For now, it's the empty interface of com.google.common.cache.Cache. GITHUB: #1752 -- MOS_MIGRATED_REVID=135400724
* Update android_ide_common to 25.0.0 and clean up FolderConfigsGravatar Googler2016-10-07
| | | | | | | | | | | Older android_ide_common does not handle BCP 47, so we update the code to handle that and remove most of the workarounds. This also pulls in a fix for 3-letter locales, unblocks resource shrinking whitelisting, etc. -- MOS_MIGRATED_REVID=135396457
* Improve memory overhead of calculating all computed default valuesGravatar Michajlo Matijkiw2016-10-07
| | | | | | | | Instead of copying the accumulator map each call, reuse the same map, overwriting previous values and taking snapshots in the base case. -- MOS_MIGRATED_REVID=135394631
* Expunge reference to c.g.common.base.FlagGravatar Liam Miller-Cushon2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135388964
* Allow repositories to refer to the local repository by repo nameGravatar Kristina Chodorow2016-10-07
| | | | | | | | | | For example, if the main repository is named @foo, other repositories can refer to targets in it as @foo//path/to:target (instead of @//path/to:target). Fixes #1248. -- MOS_MIGRATED_REVID=135382972
* Adds build flag to the debugging tips sectionGravatar Googler2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135382903
* Fix messed-up indentation in make_deb.pyGravatar Benjamin Staffin2016-10-07
| | | | | | | | | | | I'm not sure how this got all crazy the last time I touched this file! This restores the earlier sane line wrapping. Changes are purely whitespace. -- Change-Id: I6bc743de132be74b1be64c45fceba73315d06e72 Reviewed-on: https://bazel-review.googlesource.com/c/5750/ MOS_MIGRATED_REVID=135365348
* Allow OutputService#finalizeBuild to throw InterruptedException.Gravatar Rumou Duan2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135364451
* Deny unix-socket in sandbox script by default. Fixes #1881.Gravatar Yue Gan2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135360041
* Update environment design documentGravatar Klaus Aehlig2016-10-07
| | | | | | | | | | | - Instead of a script for freezing the client environment, an info key was added. - Mark as implemented. -- Change-Id: I1928031bbe535fef2ffdedba4485fa9a37f4c1ec Reviewed-on: https://bazel-review.googlesource.com/#/c/6494 MOS_MIGRATED_REVID=135356539
* Remove support for using AF_UNIX to communicate between the Bazel cient and ↵Gravatar Lukacs Berki2016-10-07
| | | | | | | | | the Bazel server. RELNOTES[INC]: --command_port=-1 to use AF_UNIX for client/server communications is not supported anymore. -- MOS_MIGRATED_REVID=135355673
* Add ctx.get_actions(), for inspecting the actions created by the current rule.Gravatar Jon Brandvein2016-10-07
| | | | | | | | | | | | | | This returns an ActionsProvider. In the case where the rule does not emit any more actions afterwards, the provider is equivalent to the one that gets passed on to the rule's dependencies. This may be useful for unit testing analysis-time helper functions that take in ctx and have the side-effect of creating actions. In this use case, the testing rule should be marked _skylark_testable=True, and its implementation function should call the helper and then inspect the result of get_actions(). -- MOS_MIGRATED_REVID=135353411
* Remove HOST_CFG and DATA_CFG references that cause warningsGravatar Kristina Chodorow2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135353307
* Support srcjar files in filtered gen jar.Gravatar Googler2016-10-07
| | | | | | | | | | | | | | | | If a java_library has any srcjar files in its sources attribute, the output of these would be discarded. To make it more robust, invert the jar filter to keep everything *except* source artifact java files. Previously, we would build a manifest containing all the generated java files and use that to filter. This should also be ever so slightly faster since we can skip an action. -- MOS_MIGRATED_REVID=135351129
* Fix info key client-envGravatar Klaus Aehlig2016-10-07
| | | | | | | | | ...to produce 'build --action_env=' statements, not common ones. See also d59bcb633. -- Change-Id: Ib0fc75ff8991650c43dd72300b3d92a6986b1165 Reviewed-on: https://bazel-review.googlesource.com/#/c/6493 MOS_MIGRATED_REVID=135350639
* Add cc_common.link_params declared provider.Gravatar Dmitry Lomov2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135346927
* Fix test when run streamed and not sandboxed. (java_import rule conflicts)Gravatar Yue Gan2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135345929
* Fix test when run streamed and not sandboxed. (mkdir: File exists)Gravatar Yue Gan2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135345593
* Global cleanup change.Gravatar Liam Miller-Cushon2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135345337
* cpp: refactoring blaze_globals.hGravatar Thiago Farina2016-10-07
| | | | | | | | | | | * drop "blaze_" prefix (like it was done with statup_options.h) * add a constructor to initalize the data members * rename the header file to global_variables.h to match the struct in there. -- Change-Id: I8c9f89f5d07c9a064bf1999c7bfb6d617d72818a Reviewed-on: https://bazel-review.googlesource.com/6370 MOS_MIGRATED_REVID=135342354
* Add action_config and feature for linking on WindowsGravatar Yun Peng2016-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also implemented whole archive feature on Windows 1. Pulled action_configs and features from CppLinkActionConfigs.java 2. Deleted many features not working on Windows. (AFAIK) including: symbol_counts output_execpath_flags_executable global_whole_archive_open runtime_root_flags global_whole_archive_close force_pic_flags 3. Added c++-link-interface-dynamic-library action config Not sure there is such thing on Windows, but it's currently in MANDATORY_LINK_TARGET_TYPES 4. Added build variable "whole_archive_object_files_params" 5. Automatically detect if linker supports /WHOLEARCHIVE and use the corresponding build variable -- Change-Id: I232798a0eb1a3291f972b313a81e678b0121d58c Reviewed-on: https://bazel-review.googlesource.com/#/c/6414 MOS_MIGRATED_REVID=135342093
* Remove JavaCpuSupplier; use the actual --cpu value instead.Gravatar Ulf Adams2016-10-06
| | | | | | | | | | | | This is a semantic change for Bazel, which now observes the --cpu flag when looking up a Jvm. Use "-default" as a fallback to keep the change backwards compatible. RELNOTES[INC]: Bazel now uses the --cpu flag to look up Jvms; it falls back to "default" if it can't find a Jvm matching the CPU value. -- MOS_MIGRATED_REVID=135333759
* Remove JavaRuntimeJarAspectProvider and the creation of ↵Gravatar Lukacs Berki2016-10-06
| | | | | | | | | JavaRuntimeJarProvider from proto aspects. JavaRuntimeJarProvider is only meaningful for targets that have neverlink=1 set and this attribute does not exist for protobuf rules. -- MOS_MIGRATED_REVID=135331297
* Description redacted.Gravatar Damien Martin-Guillerez2016-10-06
| | | | | -- MOS_MIGRATED_REVID=135331287
* Fix broken IDE skylark aspect.Gravatar Googler2016-10-06
| | | | | | | | The aspect tries to access an attribute on the idl provider that doesn't exist yet. -- MOS_MIGRATED_REVID=135310683
* Description redacted.Gravatar Googler2016-10-06
| | | | | -- MOS_MIGRATED_REVID=135310637
* EvaluationProgressReceiver absorbs other progress trackers.Gravatar Chloe Calvarin2016-10-06
| | | | | | | | | | Remove DirtyKeyTracker and inflight node tracking as independent progress tracking bits of code, and instead use an internal-facing DirtyTrackingProgressReceiver wrapper of the user's EvaluationProgressReceiver. -- MOS_MIGRATED_REVID=135291924
* BinaryLinkingTargetFactory can use the crosstool backend. objc_binary can turnGravatar Cal Peyser2016-10-06
| | | | | | | on this behavior with a flag. -- MOS_MIGRATED_REVID=135275324
* Extract java/javalite proto compilation args to command-line flags.Gravatar Carmi Grushko2016-10-06
| | | | | | | Addresses https://github.com/bazelbuild/bazel/issues/1718 -- MOS_MIGRATED_REVID=135274306
* Validate swift_library namesGravatar Dmitry Shevchenko2016-10-06
| | | | | | | * This prevents a target from building if its name or any name in its dependencies is not a valid Swift module name. -- MOS_MIGRATED_REVID=135270299
* Refactor compilation, archiving, and fully linking logic fromGravatar Cal Peyser2016-10-06
| | | | | | | experimental_objc_library to make it suitable for reuse. -- MOS_MIGRATED_REVID=135270294
* Don't run ijar test with JDK7Gravatar Damien Martin-Guillerez2016-10-05
| | | | | | | Those tests requires JDK8 features, just ignore them. -- MOS_MIGRATED_REVID=135264862
* JS, Localization: Adds support for localization with closure managed rules.Gravatar Pedro Liberal Fernandez2016-10-05
| | | | | | | RELNOTES: JS: Add support for localization with closure managed rules. -- MOS_MIGRATED_REVID=135260827
* Enable header compilation by defaultGravatar Liam Miller-Cushon2016-10-05
| | | | | -- MOS_MIGRATED_REVID=135251634
* Proper error messages when built-in rule attributes are overridden #1811Gravatar Vladimir Moskva2016-10-05
| | | | | -- MOS_MIGRATED_REVID=135241715
* Roll forward of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32.Gravatar Dmitry Shevchenko2016-10-05
| | | | | | | | | | | | | | | | | | | | | | * Fixed breakage in shell tools with an old bazel binary. Rollback of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32. *** Reason for rollback *** Breaks builds with current blaze *** Original change description *** Add a way to select non-default Xcode toolchain * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135238820
* Line buffer stderr.Gravatar Lukacs Berki2016-10-05
| | | | | | | Ideally, stdout would be line buffered, too, except that we sometimes pump large amounts of binary data through it, so line buffering would result in performance loss. -- MOS_MIGRATED_REVID=135237450
* Add jdk8 tags to java_integration_testGravatar Damien Martin-Guillerez2016-10-05
| | | | | | | | We test some JDK8 features only and it is not worth the bucket to separate them now. -- MOS_MIGRATED_REVID=135234490
* Implemented a "--experimental_repository_cache" option as the first step toGravatar Jingwen Chen2016-10-05
| | | | | | | | | | | | | caching external repositories. The option is categorized as hidden because it is a no-op. Re-submit with fix from rollback in commit 9883e2223565d0115aa938d50c3f5dbdb1c59585 due to JDK7 build failure. GitHub issue: #1752 -- MOS_MIGRATED_REVID=135231668