aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Rollback of startup options changes.Gravatar Greg Estren2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132940326
* Automated [] rollback of commit dfb2c73eda3d2dd8787ea9b2d0a03b49dfa2acc5.Gravatar Greg Estren2016-09-13
| | | | | | | | | | | | | | | | | *** Reason for rollback *** commit 4a45d92130a6b1306a3840d006df165b8040a6cf and everything after in [] breaks the Blaze nightlies *** Original change description *** Inject the product name via the per-product main.cc files. Instead of using a compile-time PRODUCT_NAME constant and complex Build rules to set the correct product name for Blaze and Bazel, use the new main.cc files to inject the appropriate value. -- MOS_MIGRATED_REVID=132934596
* Expose some platform-related types/methods to Skylark.Gravatar Googler2016-09-13
| | | | | | | RELNOTES: Exposes the is_device field on Apple platform objects and adds the apple_common.platform_type(name) method to retrieve a platform_type value that can be passed to methods like the Apple fragment's multi_arch_platform. -- MOS_MIGRATED_REVID=132918883
* Blaze support for ExtensionRegistryGenerator.Gravatar Googler2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132912013
* Fixes actool invocation for watchOS2 targets.Gravatar Erik Abair2016-09-13
| | | | | | | | Sets --platform argument on actool invocation correctly for watchOS targets. Previously the platform was hardcoded to iOS. -- MOS_MIGRATED_REVID=132899993
* Config files compatible with the new version of BazelGravatar Vladimir Moskva2016-09-12
| | | | Change-Id: I59fd0ff2059abb16ccb23403736efe2d955038f4
* Fix error message to actually use python string formattingGravatar Kristina Chodorow2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | This is using printf-style formatting, which Python happily accepts and ignores. Part of #1750: now, instead of printing ``` xcode_configure.bzl:57:5: Invoking xcodebuild failed, return code %s, stderr: %s 1 ``` it prints: ``` xcode_configure.bzl:57:5: Invoking xcodebuild failed, return code 1, stderr: xcrun: error: missing DEVELOPER_DIR path: E.g. no application claims the file" ``` Closes #1751. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1751 MOS_MIGRATED_REVID=132884125
* Fix a bug that leads to unnecessary compiles of .pic.o files (and possibly)Gravatar Googler2016-09-12
| | | | | | | | | | | | | | | | | | | | | | others in opt compiles. A while back, we added a HIDDEN_TOP_LEVEL output group to CcBinary targets to ensure that --process_headers_in_dependencies works as expected for them. However, adding all HIDDEN_TOP_LEVEL files is actually too much and e.g. also contains .pic.o files which are expensive to build but not actually needed for the compile. The fundamental difference between CcLibrary and CcBinary targets here is that a CcBinary already declares most of its inputs as it needs all of them to link the binary. In contrast, CcLibraries wouldn't need any of they dependent .o files and thus wouldn't even try to build them. This changes splits out the header token files which are required to make --process_headers_in_dependencies work correctly and only adds those to HIDDEN_TOP_LEVEL outputs of binaries files. Also removing some unused code that was producing warnings. -- MOS_MIGRATED_REVID=132883722
* Automatically detect the setting for --cpu.Gravatar Ulf Adams2016-09-12
| | | | | | | | | | | | | | | | | | In some cases, Bazel has already been doing this. In other cases, Bazel tried to infer the default cpu from the CROSSTOOL, but it did not do so consistently across different configuration fragments. I.e., Bazel ended up with an inconsistent set of toolchains for e.g., Python, C++, and Java. After this change, Bazel ignores any default_cpu setting in the CROSSTOOL. Note that the Jvm is still inconsistent with all others, as it uses "default" as the cpu value and ignores both command-line-specified and CROSSTOOL-specified values. -- MOS_MIGRATED_REVID=132879102
* Add -DNS_BLOCK_ASSERTIONS=1 to objc builds and to c++ builds using the OSX ↵Gravatar Cal Peyser2016-09-12
| | | | | | | crosstool. -- MOS_MIGRATED_REVID=132877022
* Do not discover inputs for an action that will not scan includes. This isGravatar Cal Peyser2016-09-12
| | | | | | | necessary for objc compiles, for which include scanning can be incorrect. -- MOS_MIGRATED_REVID=132876916
* Add trailing true after kill which does not have exit status 0.Gravatar Tobias Werth2016-09-12
| | | | | | | | | Also increase timeout to reduce flakyness. -- Change-Id: Ieb5bbd9b2f9e28cd3ec39f42deb0aba0f501171c Reviewed-on: https://bazel-review.googlesource.com/c/6033/ MOS_MIGRATED_REVID=132873805
* Don't print stack traces when repository rules have the wrong typeGravatar Kristina Chodorow2016-09-12
| | | | | | | | | This also entirely disallows select() in repository rules. All repository rules should now error out if the wrong type is given, instead of printing a stack trace. Fixes #1307. -- MOS_MIGRATED_REVID=132872804
* s/blaze/bazel to fix failing test.Gravatar Tobias Werth2016-09-12
| | | | | | | -- Change-Id: I1203f15e8e02373b062142c0631ff94f14bd437d Reviewed-on: https://bazel-review.googlesource.com/c/6032/ MOS_MIGRATED_REVID=132870643
* Open-source //src/test/shell/integration:progress_reporting_testGravatar Laszlo Csomor2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132870287
* Add helper function to add lines to bazelrc from integration tests.Gravatar Tobias Werth2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132864919
* Put stdout and stderr streams into a consistent state when they are redirected.Gravatar Lukacs Berki2016-09-12
| | | | | | | Fixes #1755. -- MOS_MIGRATED_REVID=132861187
* Delete intellij script generator now that https://ij.bazel.io is live.Gravatar Damien Martin-Guillerez2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132857927
* Open-source startup_options_test.Gravatar Tobias Werth2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132852747
* Remove --experimental_proto_header_modules.Gravatar Googler2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132852559
* Tentative fix for #1747.Gravatar Lukacs Berki2016-09-12
| | | | | | | The the theory is that the closing the file handle when the process terminates races with the reader threads, and if the closing happens not while a system call is running but between two, nativeReadStream() would return an error. -- MOS_MIGRATED_REVID=132851092
* Don't copy files under embedded_tools to _binGravatar Yun Peng2016-09-12
| | | | | | | Fixed https://github.com/bazelbuild/bazel/issues/1743 -- MOS_MIGRATED_REVID=132849841
* Restore sane behavior after a really bad merge (?) in commit ↵Gravatar Googler2016-09-12
| | | | | | | | | | a85bf4b19c680a6db11f21758847dc88ec0aa658. The bad merge undid part of the behavior around pruning header modules and also passed in "shouldPruneModules" as "usePic". -- MOS_MIGRATED_REVID=132846871
* Drop unnecessary -DBLAZE_JAVA_CPU definition.Gravatar Julio Merino2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132703263
* Adding utility functions to compute ContentDigests for various types; inGravatar Ola Rozenfeld2016-09-12
| | | | | | | | | | | particular, ActionKeys, which are a type of ContentDigest. The digests are a SHA1 of the contents. For proto messages, for now we compute the digest using the serialized form of the message, which is something we will probably want to rethink in the future. -- MOS_MIGRATED_REVID=132690105
* Exporting functions to compute SHA1 digests of files.Gravatar Ola Rozenfeld2016-09-12
| | | | | | | | TODO: need to stich them all the way through various ActionInputFileCache implementations! -- MOS_MIGRATED_REVID=132685408
* Add missing fields to ObjcCommon for experimental_objc_library.Gravatar Cal Peyser2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132683208
* Have SkyQueryEnvironment#getRBuildFiles not visit skyframe nodes more than ↵Gravatar Nathan Harmata2016-09-12
| | | | | | | once. This is helpful when there are multiple skylark reverse 'load' paths from the same popular .bzl file to a single BUILD file. As an implementation detail, introduce a few ThreadSafeUniquifier things (these will also be used in followup CLs). -- MOS_MIGRATED_REVID=132680777
* Make cc_toolchain not croak if something that is not a shared library is ↵Gravatar Lukacs Berki2016-09-12
| | | | | | | mentioned in the dynamic_runtime_libs attribute. -- MOS_MIGRATED_REVID=132676097
* Global cleanup change.Gravatar Vladimir Moskva2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132675557
* Inject the product name via the per-product main.cc files.Gravatar Julio Merino2016-09-12
| | | | | | | | | Instead of using a compile-time PRODUCT_NAME constant and complex Build rules to set the correct product name for Blaze and Bazel, use the new main.cc files to inject the appropriate value. -- MOS_MIGRATED_REVID=132675327
* Fix invalid tags in Skylark string method docs.Gravatar David Chen2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132673390
* Adds missing protobuf.bzl to version 3.0.0 of protobufGravatar Alex Humesky2016-09-09
| | | | Change-Id: I2119ce7cdce68c2732653fa0152abf0150d17ac0
* Make the code that is using execRoot paths use execRoot pathsGravatar Kristina Chodorow2016-09-09
| | | | | | | | | | | Chipping away at making the big CL for #1262 smaller. Only runfiles paths are different right now, so this makes getPathUnderExecRoot and getSourceRoot return the same thing. Also corrected a couple places where Label.EXTERNAL_PATH_PREFIX and Label.EXTERNAL_PACKAGE_NAME were being used incorrectly. -- MOS_MIGRATED_REVID=132671081
* Add repository parameter to source artifact resolverGravatar Kristina Chodorow2016-09-09
| | | | | | | Needed for #1262. Doesn't do anything, yet, other than make the CL smaller. -- MOS_MIGRATED_REVID=132671036
* Set workspace name for sandbox dirsGravatar Kristina Chodorow2016-09-09
| | | | | | | | | | | This is required for #1262, as execution roots for external repos will be accessed via ../reponame under the exec root. I'm trying to break up the change into several small CLs. This should have no impact on the sandbox's behavior. -- MOS_MIGRATED_REVID=132671034
* Fix link on Roadmap page to Go rules.Gravatar David Chen2016-09-09
| | | | | | | Fixes #1746 -- MOS_MIGRATED_REVID=132660728
* Make links to docs with anchors working again.Gravatar Tobias Werth2016-09-09
| | | | | | | | | | This way, we can still use links like: http://bazel.io/docs/bazel-user-manual.html#sandboxing -- Change-Id: Id76a9795eaaaa0cd420df83440faada584c8621b Reviewed-on: https://bazel-review.googlesource.com/c/5950/ MOS_MIGRATED_REVID=132654093
* Various minor fixes in the client:Gravatar Lukacs Berki2016-09-09
| | | | | | | | | - Don't call setrlimit() (it was needed to make 32-bit JVMs work with >3GB heaps) - Remove a non-functional way to tweak the Linux scheduler - Cosmetic fixes -- MOS_MIGRATED_REVID=132653426
* Fixed SkylarkTests on WindowsGravatar Yun Peng2016-09-09
| | | | | | | | | Fixed #1729 -- Change-Id: I4c4e8bf351eb8d18aeb8345542f92c5c47596a86 Reviewed-on: https://bazel-review.googlesource.com/#/c/5930 MOS_MIGRATED_REVID=132652736
* Handle multiply-defined attrs in AndroidResourceClassWriterGravatar Googler2016-09-09
| | | | | | | | | | | | | | Currently, we do multiple put calls into the ImmutableMap.builder(), which asserts. See bug for examples from projects. Tweak the aapt comparison test method to actually merge before writing out the R.class (to match the aapt side, which also merges first). -- MOS_MIGRATED_REVID=132607034
* IntelliJ-with-Bazel: Refer users to public website, not github project.Gravatar Googler2016-09-09
| | | | | | | The github repo is just a code drop, and currently not updated. The website contains more up-to-date instructions, in line with the plugin version published to IntelliJ's plugin repo. -- MOS_MIGRATED_REVID=132590585
* Minor corrections to Cookbook examples.Gravatar David Chen2016-09-09
| | | | | | | | | * Rename `hash` rule in Computed dependencies section since the name of the rule conflicts with the Skylark function of the same name. * Fix styling in some examples. -- MOS_MIGRATED_REVID=132588578
* Adding all proto messages for remote execution and caching API per design doc:Gravatar Googler2016-09-09
| | | | | | | | | | https://docs.google.com/document/d/1hh63AzKlwcOJN6jBZzY3GNPffzww-JKx1015DfFKM6g/edit# The current version is kept intact for now, will remove it in the CL that does the appropriate refactoring. -- MOS_MIGRATED_REVID=132572182
* Suggest including a debugging=False parameter that controlled debug logging ↵Gravatar Googler2016-09-09
| | | | | | | as an alternative to removing the debug logging. -- MOS_MIGRATED_REVID=132570566
* Check OS X version to decide if sandbox is supported.Gravatar Yue Gan2016-09-09
| | | | | -- MOS_MIGRATED_REVID=132570504
* Boilerplate for parallel evaluation of FunctionExpression query expression ↵Gravatar Nathan Harmata2016-09-09
| | | | | | | nodes. -- MOS_MIGRATED_REVID=132558031
* Make sure to always use a parameter file when building Java deploy jars with ↵Gravatar Philipp Wollermann2016-09-09
| | | | | | | | | | | SingleJar. Otherwise the WorkerSpawnStrategy (which requires the action to use a parameter file) will fail to execute JavaDeployJar Spawn actions when its CommandLine decides not to use a parameter file, because the arguments are short enough. Also adds a convenience method SpawnAction#getArgumentsFromParamFile() for use in tests, because I needed it here to fix up the deploy jar tests. -- MOS_MIGRATED_REVID=132557693
* Windows: add a Java-native isJunction methodGravatar Laszlo Csomor2016-09-09
| | | | | | | | | | | | | | | | | Also add tests for WindowsFileSystem and some for WindowsFileOperations, so we test both the JNI-based and Java-native isJunction function, as well as handling of dangling symlinks/junctions. Having a Java-native version of this method means we don't need to use windows_jni.dll for any tests or for bootstrapping. This change could help with https://github.com/bazelbuild/bazel/issues/1735 -- MOS_MIGRATED_REVID=132556440
* Use inheritance to support site-specific options.Gravatar Julio Merino2016-09-09
| | | | | | | | | | | | | | | | | | Rename BlazeStartupOptions to StartupOptions and turn the latter into a class that can be subclassed to implement site-specific options behavior. This lends itself to easier customization for the site-specific versions, especially if there is more than one, and gets rid of the strange build-time parameterization of the old blaze_startup_options*.cc files. Note that this change introduces various TODOs. This is intentional. This change is quite complex as it is and I want to focus it on reshuffling the class structure without actually touching the internals. The latter can be done in subsequent, more targetted changes that are easier to review and understand. -- MOS_MIGRATED_REVID=132555032