aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
Commit message (Collapse)AuthorAge
* 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
* 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
* 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
* 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
* 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
* 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
* Add an "is main repo" field to RootsGravatar Kristina Chodorow2016-09-09
| | | | | | | This is part of prepping for #1262. -- MOS_MIGRATED_REVID=132553178
* Expose aar to Skylark.Gravatar Googler2016-09-09
| | | | | -- MOS_MIGRATED_REVID=132551909
* Implement input pruning using .d files in objc.Gravatar Cal Peyser2016-09-09
| | | | | -- MOS_MIGRATED_REVID=132550233
* Make FdoSkyException static.Gravatar Lukacs Berki2016-09-09
| | | | | | | It was an ugly oversight. -- MOS_MIGRATED_REVID=132549653
* Remove the JAVA_CPU make variable.Gravatar Ulf Adams2016-09-08
| | | | | | | Use TARGET_CPU instead; they always have the exact same value. -- MOS_MIGRATED_REVID=132547819
* Correct documentation for CcLibraryHelper#addIncludeDirs.Gravatar Cal Peyser2016-09-08
| | | | | -- MOS_MIGRATED_REVID=132547161
* sandbox: Extract the common methods that get the input files from a Spawn ↵Gravatar Philipp Wollermann2016-09-08
| | | | | | | into a shared helper class. -- MOS_MIGRATED_REVID=132546638
* Fix compilation for JDK 7Gravatar Laurent Le Brun2016-09-08
| | | | | | | #1741 -- MOS_MIGRATED_REVID=132542738
* Do not print the "server probably died abruptly" warning message.Gravatar Lukacs Berki2016-09-08
| | | | | | | It is not really actionable and doesn't warn the user against real breakages, so there isn't much point. -- MOS_MIGRATED_REVID=132541684
* Windows: go back to using Jury-rigged isJunctionGravatar Laszlo Csomor2016-09-08
| | | | | | | | | | | This should unbreak the tests, see https://github.com/bazelbuild/bazel/issues/1735 The tests still break but now due to https://github.com/bazelbuild/bazel/issues/1736 -- MOS_MIGRATED_REVID=132530222
* Remove the vestigial PythonImplicitAttributes class.Gravatar Lukacs Berki2016-09-08
| | | | | -- MOS_MIGRATED_REVID=132529035
* Add compilation mode flags for experimental_objc_library.Gravatar Cal Peyser2016-09-08
| | | | | -- MOS_MIGRATED_REVID=132489735
* Enable non_propagated_deps for experimental_objc_library.Gravatar Cal Peyser2016-09-08
| | | | | -- MOS_MIGRATED_REVID=132489408
* Allow list of lists of mandatory native providersGravatar Googler2016-09-08
| | | | | -- MOS_MIGRATED_REVID=132464865
* Remove dependency data from AarGeneratorActionGravatar Googler2016-09-08
| | | | | | | | | | | It's not supposed to cover direct deps and trans deps according to the documentation anyway. Also prepare to move the --strictMerge flag. The option isn't checked anymore. There's only one type of merging. -- MOS_MIGRATED_REVID=132444314
* Fixed a bug during bootstrapGravatar Yun Peng2016-09-08
| | | | | | | | | Fixed #1732 RELNOTES: -- MOS_MIGRATED_REVID=132436686
* A bunch of small changes to prepare SkyQueryEnvironment for full-parallel ↵Gravatar Nathan Harmata2016-09-08
| | | | | | | | | | | | | | evaluation: -Rename QueryExpression#evalConcurrently to QueryExpression#parEval. (parallelism is not concurrency! See https://existentialtype.wordpress.com/2011/03/17/parallelism-is-not-concurrency/) -Have SkyQueryEnvironment#eval (used recursively in #evaluateQuery) dynamically call QueryExpression#parEval when appropriate. -Delete QueryExpression#canEvalConcurrently. -Add ThreadSafety annotations in a bunch of relevant places in the query codebase. -A bunch of testing infrastructure to test parallel query evaluation. -TODOs for implementing parallel evaluation of all QueryExpression nodes. -- MOS_MIGRATED_REVID=132436340
* Refactoring getTimeoutSeconds of a Spawn into Spaws.java, becaused it is usedGravatar Googler2016-09-08
| | | | | | | in places other than the sandbox code. -- MOS_MIGRATED_REVID=132436150
* Fixed the issue that hard links are handled improperly when bazel ↵Gravatar Googler2016-09-08
| | | | | | | | | decompresses tarballs. Issue link: https://github.com/bazelbuild/bazel/issues/574 -- MOS_MIGRATED_REVID=132434278
* Making the PathFragment interned segments list public, to be used later inGravatar Googler2016-09-08
| | | | | | | generating the directory tree nodes efficiently. -- MOS_MIGRATED_REVID=132433991
* Remove some unused code from the Python rules.Gravatar Lukacs Berki2016-09-08
| | | | | -- MOS_MIGRATED_REVID=132433369
* Remove some dead code from PythonConfigurationLoader.Gravatar Ulf Adams2016-09-08
| | | | | | | | | There doesn't seem to be any need for a C++ toolchain to create a Python config anymore. I looked through the change history, but didn't find any obvious culprits / reasons for the current code. -- MOS_MIGRATED_REVID=132429818
* Precompiled headers are added as compile action inputs forGravatar Cal Peyser2016-09-08
| | | | | | | experimental_objc_library. -- MOS_MIGRATED_REVID=132429745
* Use named parameters for function in SkylarkRepositoryContext when it make senseGravatar Damien Martin-Guillerez2016-09-07
| | | | | | | | | | | | | | RELNOTES[INC]: repository_ctx.{download,download_and_extract,execute} API now use named parameters for optional parameters and no longer uses argument type to distinguished between arguments (executable attribute name must be specified when preceding optional arguments are missing). Fixes #1426. -- Change-Id: I41d174cd9fd5c47edf4e2e9a86ce7f6c7882a104 Reviewed-on: https://bazel-review.googlesource.com/#/c/5673 MOS_MIGRATED_REVID=132421955
* Disable pruning header modules for FakeCppCompileActions. Those currently run aGravatar Googler2016-09-07
| | | | | | | | build first before discovering their inputs and this build doesn't properly declare its inputs if we do pruning. -- MOS_MIGRATED_REVID=132414200
* Remove support for filegroup-based C++ toolchains:Gravatar Lukacs Berki2016-09-07
| | | | | | | RELNOTES[INC]: filegroup-based C++ toolchains are not supported anymore. --*_crosstool_top options must always point to a cc_toolchain_suite rule (or an alias of one). -- MOS_MIGRATED_REVID=132410829
* Windows, tests: move code into WindowsTestUtilGravatar Laszlo Csomor2016-09-07
| | | | | | | | | | | | Additionally: - clean up the corresponding BUILD file a bit - add a comment to Path A subsequent change will add tests for WindowsFileSystem, then fix a bug there. -- MOS_MIGRATED_REVID=132408212
* Removes all traces of the, now enabled by default, ↵Gravatar Sergio Campama2016-09-07
| | | | | | | experimental_auto_top_level_union_objc_protos flag. -- MOS_MIGRATED_REVID=132395070
* Use c++ action configs in experimental_objc_library.Gravatar Cal Peyser2016-09-07
| | | | | -- MOS_MIGRATED_REVID=132358544
* Don't verify include paths automatically. This enables objc to disable ↵Gravatar Cal Peyser2016-09-07
| | | | | | | include paths. -- MOS_MIGRATED_REVID=132345416
* Skylark no longer crashes when the default value of an attribute is a label ↵Gravatar Florian Weikert2016-09-06
| | | | | | | | | string that points to a remote repository. Fixes #1442. -- MOS_MIGRATED_REVID=132320130
* Move bin_dir/genfiles_dir to RuleContextGravatar Kristina Chodorow2016-09-06
| | | | | | | | | | | | | | | | | | | | | This is so that the repository name can be included in the root. To avoid breaking Bazel's CI which tests the HEAD code against the latest release, none of the Skylark rules in Bazel can be updated to use ctx.{bin,genfiles}_dir yet, we will have to wait for the 0.3.2 release to actually update the call sites. However, this change is to effectively deprecate ctx.configuration.{bin,genfiles}_dir: it undocuments them and I will announce the change on the list. RELNOTES[INC]: bin_dir and genfiles_dir are now properties of ctx, not configuration. That is, to access the bin or genfiles directory from a Skylark rule, use ctx.bin_dir or ctx.genfiles_dir (not ctx.configuration.{bin,genfiles}_dir). At the moment, you can access {bin,genfiles}_dir from either, but the ctx.configuration version will stop working in a future release. -- MOS_MIGRATED_REVID=132319900
* Remove some dead code from JvmConfigurationLoader.Gravatar Ulf Adams2016-09-06
| | | | | -- MOS_MIGRATED_REVID=132317938