aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools
Commit message (Collapse)AuthorAge
* Minor cleanups in SkylarkGravatar Francois-Rene Rideau2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87535290
* Publish a static ASTNode setLocationGravatar Francois-Rene Rideau2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87519507
* Generate Build Encyclopedia and Skylark API doc for Bazel.Gravatar Laszlo Csomor2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87515939
* Get runfiles prefix from the WORKSPACE fileGravatar Kristina Chodorow2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87513766
* Do not use module maps if the crosstool doesn't support them when using theGravatar Manuel Klimek2015-03-05
| | | | | | | | | | | | legacy feature configuration. This requires two fixes: 1. we want to mark the module_maps feature unsupported, if the toolchain itself doesn't provide a module map 2. no legacy feature is allowed to imply the module_maps feature -- MOS_MIGRATED_REVID=87511295
* Automated [] rollback of [].Gravatar Matthew DeVore2015-03-05
| | | | | | | | | | | | | *** Reason for rollback *** This is not needed thanks to blaze query. *** Original change description *** Make xctest_app's .ipa an implicit output so that scripts external to Bazel can access it. -- MOS_MIGRATED_REVID=87507266
* Open-source JavaToolchainDataParserGravatar Damien Martin-Guillerez2015-03-05
| | | | | | | JavaToolchainDataParser is a parser that reconstruct a JavaToolchainData from the output of a 'bazel query --output=proto'. -- MOS_MIGRATED_REVID=87502754
* The BE generator now warns if rules are undocumented.Gravatar Laszlo Csomor2015-03-05
| | | | | | | | It also caches files that it already processed, since that may legally happen if there are multiple overlapping directory trees are specified as input. -- MOS_MIGRATED_REVID=87492930
* Fix race condition in SkylarkType.ofGravatar Francois-Rene Rideau2015-03-05
| | | | | | | | | | | Fix race condition in SkylarkType.of(), whereby .equals() but not same (==) types were created, by making Simple.of() synchronized. Also make SkylarkType#includes() more robust by using .equals() instead of == (it's a little bit slower in the case of Simple types once fixed, but also works on complex types that don't hash-cons their values). Also, distinguish SkylarkList (printed as list) and java.util.List (printed as List) and similarly for tuple vs Tuple, when printing types in debugging messages. -- MOS_MIGRATED_REVID=87490176
* Scope the paths of objc compilation artifacts from J2Objc-generated code ↵Gravatar Googler2015-03-05
| | | | | | | using both the associated Java target label and the binary/test target that generates the compilation action. This fixes a bug in which two binary/test targets containing the same Java target to translate leads to shared actions when users execute more than one such binary/test targets in a single Blaze invocation. -- MOS_MIGRATED_REVID=87364125
* Make Rule know about the name of the workspace it is in.Gravatar Kristina Chodorow2015-03-05
| | | | | | | This is needed for taking the runfiles prefix from the WORKSPACE file instead of hardcoding it. -- MOS_MIGRATED_REVID=87347883
* Move BuildViewTestCase to the lib.analysis.util package.Gravatar Ulf Adams2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87345558
* Add Union, contains() to SkylarkTypeGravatar Francois-Rene Rideau2015-03-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor SkylarkType, notably adding Union types and runtime typechecks. These are pre-requisites to unifying all Skylark function calls to use the same code path, that will check types (like SkylarkFunction currently does) as well handle a more complete Python calling convention (like MixedModeFunction is almost but not quite able to do). A SkylarkType can be either * a Simple type corresponding to a Java class, with special types TOP and BOTTOM corresponding respectively to Object and EmptyType (similar to Void). * a Combination of a generic class (LIST, MAP or SET) and an argument type * a Union of a finite number of types * a FunctionType associated with a name and a returnType (with ugly validation-time side-effects that we should probably move out of the type) Unions are necessary because: 1- the type of some builtin function arguments are actually the Union of some type and a function type for a callback that computes the actual value. 2- the type of some builtin function arguments declared as "List" is actually the Union of java List and SkylarkList. 3- instead of adding lots of special cases at the point of argument validation, it's cleaner and more generally useful to have explicit Union types, that can then be displayed to users for documentation or debugging purposes. Validation-time "type inference" is re-expressed simply as type intersection. None is treated specially as inferred into TOP instead of NoneType. Combination types are printed as genericType of argTypes, e.g. "dict of ints". "type" and "generic1" become "genericType" and "argType". In SkylarkList and SkylarkNestedSet, genericType becomes contentType. -- MOS_MIGRATED_REVID=87340881
* Renamed the package of genquery rule from gen to genqueryGravatar Damien Martin-Guillerez2015-03-04
| | | | | -- MOS_MIGRATED_REVID=87337298
* Remove the "begin-block" comments from the very beginning of the BE.Gravatar Laszlo Csomor2015-03-04
| | | | | -- MOS_MIGRATED_REVID=87335844
* Remove --compile_only and --compilation_prerequisites_only; --output_groups ↵Gravatar Lukacs Berki2015-03-04
| | | | | | | can be used in their stead. -- MOS_MIGRATED_REVID=87334648
* Description redacted.Gravatar Marian Lobur2015-03-04
| | | | | -- MOS_MIGRATED_REVID=87324093
* RELNOTES: Invoking blaze run on an objc_binary target launches iossim with ↵Gravatar Googler2015-03-04
| | | | | | | | | the resulting app. This adds very basic run support for objc_binary targets. It simply launches them in iossim with the default device and SDK. -- MOS_MIGRATED_REVID=87286604
* Actually use bundles attribute in objc_import.Gravatar Peter Schmitt2015-03-04
| | | | | | | | This is left over from the abstract rules refactor where I added this attribute to objc_import but not actually any code to use it. -- MOS_MIGRATED_REVID=87284690
* Don't hardcode the runfiles prefix used by Java rules.Gravatar Kristina Chodorow2015-03-04
| | | | | | | This is prep for replacing the prefix with one set in the WORKSPACE file. -- MOS_MIGRATED_REVID=87282470
* Remove unused make variable GLIBC.Gravatar Han-Wen Nienhuys2015-03-04
| | | | | -- MOS_MIGRATED_REVID=87265401
* Add a SkyQueryEnvironment which runs queries by examining the Skyframe graph.Gravatar Janak Ramakrishnan2015-02-26
| | | | | | | | | This environment eagerly preloads the transitive closure of a specified query "universe", and so may not be as efficient as the standard query for limited-scope queries. It is activated when the universe is specified and ordered results are not requested (since it is currently unable to order results). Tests were modified/added to exercise this environment where deemed interesting. Some ugly hacks were done to add coverage in AbstractQueryTest and friends, because currently even if the full depot is loaded (using //...), individual target patterns most likely won't be present in the graph. A better way to deal with this situation, suggested by felly, is probably to extract target pattern resolution logic to an auxiliary function so that query is able to resolve target patterns without mutating the graph, and then call into the read-only graph with the resolved patterns. That may be done in a follow-up, in which case the "scope" of every query could be //... . -- MOS_MIGRATED_REVID=87257028
* fix bug in test-specific top-level artifact helper behaviorGravatar Michajlo Matijkiw2015-02-26
| | | | | | | | | | | A recent change resulted in TopLevelArtifactHelper.getTopLevelArtifacts() returning an empty result when passed TopLevelArtifactContext.DEFAULT. This only happens in tests and wasn't caught because tests were never fully checking the results. Update MultiGroupForgeResourceAccountantTest to better consider/expose this failure and fixed. -- MOS_MIGRATED_REVID=87254923
* Annotate the public/confidential/shared parts of the BE template.Gravatar Laszlo Csomor2015-02-26
| | | | | | | | | Rewrite some examples that used internal labels to be safe for external version. Also remove some obsolete parts such as no-longer existent Make variables. -- MOS_MIGRATED_REVID=87241538
* Documentation of the coverage report generation is updated.Gravatar Googler2015-02-26
| | | | | -- MOS_MIGRATED_REVID=87235457
* Skylark: path in load statement either has to be absolute or has to have ↵Gravatar Googler2015-02-26
| | | | | | | exactly one segment. -- MOS_MIGRATED_REVID=87234901
* Open-source genquery ruleGravatar Damien Martin-Guillerez2015-02-26
| | | | | | | genquery rule get output of a 'bazel query' inside a build. -- MOS_MIGRATED_REVID=87234590
* Make it possible for SpawnActions to run unconditionally.Gravatar Lukacs Berki2015-02-26
| | | | | -- MOS_MIGRATED_REVID=87231498
* Introduce ios_application rule.Gravatar Peter Schmitt2015-02-25
| | | | | | | | | | | | | | | | | In this, its first incarnation this rule provides no new functionality - all it does is take an objc_binary and perform any bundling the objc_binary would have done anyhow. This will allow us to remove bundling functionality from objc_binary and add multi-architecture transitions between ios_application and objc_binary. However, I did remove the requirement for the infoplist attribute on bundles. We don't actually need it (a plist is generated automatically) and this removal makes the transition much easier. RELNOTES: Introduce ios_application_rule. -- MOS_MIGRATED_REVID=87194403
* Include NODEP_LABEL in the set of attributes that are not reported as ↵Gravatar Janak Ramakrishnan2015-02-25
| | | | | | | dependencies of a target (along with outputs and NODEP_LABEL_LIST, which was just special because of visibility). -- MOS_MIGRATED_REVID=87180069
* Add --local_test_jobs to limit local test concurrencyGravatar Mark Schaller2015-02-25
| | | | | | | | | | | | | | | Users have asked for ways to control the concurrency level of their local tests. They can do it right now using the --local_resources option, but that is unintuitive and affects the parallelism of non-test actions. This option changes the kind of resources obtained for local tests. If set, the CPU, RAM, and IO dimensions for local tests will not be used, and a new localTestCount dimension will be used, where the capacity is equal to the option's value, and each local test consumes one unit. -- MOS_MIGRATED_REVID=87177698
* Enforce same behavior for //path/to/package and path/to/packageGravatar Damien Martin-Guillerez2015-02-25
| | | | | | | Having an error message in path/to/package and //path/to/package resolve to //path/to/package:package was a bit strange. -- MOS_MIGRATED_REVID=87171051
* Tweaks off of upcoming changes to SkylarkType.Gravatar Francois-Rene Rideau2015-02-25
| | | | | -- MOS_MIGRATED_REVID=87154772
* Allow any character as first letter in package namesGravatar Damien Martin-Guillerez2015-02-25
| | | | | -- MOS_MIGRATED_REVID=87153741
* Move all logic to determine which output groups are to be built to ↵Gravatar Lukacs Berki2015-02-25
| | | | | | | | | BuildRequest.determineOutputGroups(). This paves the way for making --compile_only, --compilation_prerequsites_only and --save_temps into aliases for --output_groups=<something> -- MOS_MIGRATED_REVID=87138659
* Remove TempsProvider in favor of an output group.Gravatar Lukacs Berki2015-02-25
| | | | | -- MOS_MIGRATED_REVID=87136119
* Pass bundle_id attribute to PlMerge if it is explicitly setGravatar Googler2015-02-25
| | | | | | | | | * Adds primary and fallback bundle ID fields * Adds conflict resolution that considers IDs in order: plist file, primary ID (set in BUILD file), fallback ID (Blaze default). If plist and primary are both set, they should be equal, otherwise an error is thrown. -- MOS_MIGRATED_REVID=87106031
* Compute action start time in critical path using Clock.currentTimeMillis ↵Gravatar Miguel Alcon Pinto2015-02-25
| | | | | | | instead of nanoTime. As nanoTime should only be used to compute time differences. To avoid having to pass two long values representing time (And calling twice to Clock.xxx methods per action executed) we compute the wall time by passing a clock and computing the difference from the start nano time. -- MOS_MIGRATED_REVID=87102963
* Make xctest_app's .ipa an implicit output so that scripts external to Bazel ↵Gravatar Matthew DeVore2015-02-24
| | | | | | | can access it. -- MOS_MIGRATED_REVID=87086924
* Add the j2objc libraries as dependencies in IosTest.Gravatar Googler2015-02-24
| | | | | -- MOS_MIGRATED_REVID=87083899
* LinuxSandboxedStrategy: only set debug if --verbose_failures is set.Gravatar Han-Wen Nienhuys2015-02-24
| | | | | -- MOS_MIGRATED_REVID=87048867
* Simplify the algorithm to compute top-level artifacts to build even more by ↵Gravatar Lukacs Berki2015-02-24
| | | | | | | creating a HIDDEN_TOP_LEVEL output group and putting the artifacts required for building runfiles there. -- MOS_MIGRATED_REVID=87039530
* Remove FilesToCompileProvider and CompilationPrerequisitesProvider and ↵Gravatar Lukacs Berki2015-02-24
| | | | | | | replace them with output groups. -- MOS_MIGRATED_REVID=87038548
* Description redacted.Gravatar Nathan Harmata2015-02-24
| | | | | -- MOS_MIGRATED_REVID=87009938
* Use a factory method in ASTFileLookupValue to enforce that the NO_FILE ↵Gravatar Nathan Harmata2015-02-24
| | | | | | | constant is correctly used. -- MOS_MIGRATED_REVID=87008436
* Change default xcode_options to DebugGravatar Daniel Wagner-Hall2015-02-23
| | | | | | | Having a random non-Debug non-Release xcode_options doesn't serve any useful purpose. -- MOS_MIGRATED_REVID=86999601
* Make an error message more robust.Gravatar Francois-Rene Rideau2015-02-23
| | | | | | | Make it not depend on the iteration order on the hash table of **kwargs. -- MOS_MIGRATED_REVID=86986044
* Don't allow bundles in objc_* deps.Gravatar Peter Schmitt2015-02-23
| | | | | | | | | Use the "bundles" attribute instead. RELNOTES: Use "bundles" instead of "deps" to depend on bundles in objc rules. -- MOS_MIGRATED_REVID=86985618
* Xcode project files: Add dependencies on ios_extension from objc_binary ↵Gravatar Matthew DeVore2015-02-23
| | | | | | | | | correctly. ios_extension is a direct dependency of the objc_binary, but none of the transitive dependencies should be added to the build phases, since this would cause the symbols of the linked objc_binary to contain everything the ios_extension has, which we don't want. -- MOS_MIGRATED_REVID=86920610
* Add a dummy source file to the Xcode targets for ios_extensions to make ↵Gravatar Matthew DeVore2015-02-22
| | | | | | | Xcode happy. -- MOS_MIGRATED_REVID=86910779