aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Replace @BlazeRule with a getMetadata() method. This lets us avoid Java ↵Gravatar Googler2015-03-20
| | | | | | | | | | | | | | | | | Reflection, and saves ~15% of initialization time in []RuleClassProvider.create(). Before change: Over 14 samples, average = 976 median = 969.9 After change: Over 14 samples, average = 811.5 median = 813.9 -- MOS_MIGRATED_REVID=89036261
* Allow specifying crosstool flags based on the build mode.Gravatar Manuel Klimek2015-03-20
| | | | | | | | | | | The build mode ('dbg', 'opt', 'fastbuild') is specified as a feature. The crosstool can use that feature to switch between different flag configurations. As one of these is always provided, the crosstool can hang default configurations off of those features (via implies). -- MOS_MIGRATED_REVID=89035231
* Give a helpful error message when the crosstool configuration enablesGravatar Manuel Klimek2015-03-20
| | | | | | | | | unsupported features for a rule. Previously this would lead to a NPE later on. -- MOS_MIGRATED_REVID=89033249
* Rolling back change because of subtle race condition when multiple actions ↵Gravatar Janak Ramakrishnan2015-03-20
| | | | | | | insert ActionInputs into SingleBuildFileCache. -- MOS_MIGRATED_REVID=89032980
* Skylark: documentation for targets is added and improved.Gravatar Googler2015-03-20
| | | | | -- MOS_MIGRATED_REVID=89032399
* Added a section in contributing.md for debugging BazelGravatar Damien Martin-Guillerez2015-03-20
| | | | | -- MOS_MIGRATED_REVID=89030601
* Allow built-in WORKSPACE rules to be overridden by the userGravatar Kristina Chodorow2015-03-20
| | | | | | | | This will allow thing in, say, jdk.WORKSPACE to be overridden in the main WORKSPACE file. -- MOS_MIGRATED_REVID=89030234
* Change product name in output snippetGravatar Kristina Chodorow2015-03-20
| | | | | -- MOS_MIGRATED_REVID=89028761
* Skylark: Use LValue class in loops and comprehensions.Gravatar Laurent Le Brun2015-03-20
| | | | | -- MOS_MIGRATED_REVID=89020190
* Refactoring: Introduce a new class LValue.Gravatar Laurent Le Brun2015-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | This CL is just moving code from AssignmentStatement to a new class. The goal is to share code dealing with LValues. LValues can be found here: - lvalue = 2 - [for lvalue in exp] - {a: b for lvalue in exp] - for lvalue in exp: pass The LValue itself can have different forms: - a - a, b - a[0] - a, (b, c) - [a[0], (b, c)] - a[1:5] Although we may not handle everything, we need to make sure that the same things can be used in variable assignment and in for loops. -- MOS_MIGRATED_REVID=89015483
* Description redacted.Gravatar Janak Ramakrishnan2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88992212
* Tweak the bazel build scriptsGravatar Francois-Rene Rideau2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88975338
* Prevent clashing xcode targets for multiple architectures.Gravatar Peter Schmitt2015-03-20
| | | | | | | | | | | Without this change we create a xcode target for each combination (target, architecture) which causes the xcode project generation to blow up: Xcode transparently handles architectures. Eventually we want to match Xcode's behaviour but for now we export just a single architecture's xcode targets which should allow developers to work in xcode as before while preserving multi-architecture compilation for IPAs in blaze. -- MOS_MIGRATED_REVID=88973190
* Change heading level for "Getting Started" section. I actually recommended ↵Gravatar Googler2015-03-20
| | | | | | | this change in a prior review, but our various Markdown interpreters actually expect there to be only one top-level (#) header per page, which is the page title. -- MOS_MIGRATED_REVID=88972196
* Delay updating inputs of an action when processing the action cache until it ↵Gravatar Janak Ramakrishnan2015-03-20
| | | | | | | | | | | is known that the action is a cache hit. This adds momentary memory overhead when checking the action cache, but should prevent a host of potential errors. Note that this cl assumes that an action that discovers its inputs does *not* take the names of its inputs into account when calculating its key, which is already stated as part of the javadoc of Action#getKey. -- MOS_MIGRATED_REVID=88971626
* Description redacted.Gravatar Googler2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88970846
* Change terminology from "Writing Your Own Build Rules" to "Creating a BUILD ↵Gravatar Googler2015-03-20
| | | | | | | File" to avoid confusion between adding a rule and actually writing one (with Skylark). -- MOS_MIGRATED_REVID=88970841
* Use //external:objc_proto_lib instead of a googlemac path for objc_proto_libraryGravatar Daniel Wagner-Hall2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88964412
* Make include scanning faster when a target has many include scannables.Gravatar Manuel Klimek2015-03-20
| | | | | | | | | | | | | | | | | Instead of repeatedly scanning all transitively required include scannables, do one pass from all include scannables; this prevents us revisiting the common transitive closure of the include scannables. Additionally, only scan command line includes relatively to a main source file, not relatively to all source files. This is better than what we had before, but it's still not exactly right - we should actually scan the command line includes relatively to the module map file ([] Brings include scanning times for large TUs with modules down from ~60 seconds to < 2 seconds. -- MOS_MIGRATED_REVID=88963159
* New class hierarchy for Skylark functionsGravatar Francois-Rene Rideau2015-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | | * New hierarchy BaseFunction > UserModeFunction, BuiltinFunction. The old hierarchy still exists for now, to be deleted after migration: Function > AbstractFunction > MixedModeFunction > (UserModeFunction, SkylarkFunction > SimpleSkylarkFunction) (UserModeFunction is already migrated, and BaseFunction implements Function, for now.) * Function supports *args and **kwargs when calling functions, and mandatory named-only parameters in the style of Python 3. Notable difference with Python: *args binds the variable to a tuple, because a Skylark list would have to be monomorphic. * A better, simpler, safer FFI using reflection with BuiltinFunction. Handles typechecking, passes parameters in a more Java style. (Not used for now, will be used later.) * A new annotation @SkylarkSignature, intended to replace @SkylarkBuiltin, supports the full function call protocol, including default arguments. * Support for annotating function Factory-s rather than functions. -- MOS_MIGRATED_REVID=88958581
* Automated [] rollback of [].Gravatar Laurent Le Brun2015-03-20
| | | | | | | | | | | | | *** Reason for rollback *** This CL broke [] *** Original change description *** Skylark: New error message in the lexer when an unsupported Python keyword is used. -- MOS_MIGRATED_REVID=88954426
* Disambiguate jar paths in the exec root treeGravatar Kristina Chodorow2015-03-20
| | | | | | | | | | | Before, external jars would stomp on each other and the last jar loaded would "win" (all others would be overwritten and the build would fail). This changes symlink forest path generation to generate unique paths under <exec-root>/external/ for jars, so multiple external jar dependencies can be used. -- MOS_MIGRATED_REVID=88952191
* Remove some TODOs.Gravatar Han-Wen Nienhuys2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88952129
* Fix typo.Gravatar Nathan Harmata2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88951407
* Description redacted.Gravatar Googler2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88950560
* Added some more space for code formatting in the installation guideGravatar Damien Martin-Guillerez2015-03-20
| | | | | | | | Tested with online markdown preview of Github and that should fix the the formatting issue. -- MOS_MIGRATED_REVID=88944567
* Open source ConfigurationTestCase.Gravatar Ulf Adams2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88944458
* Add on-the-fly remote reposGravatar Kristina Chodorow2015-03-20
| | | | | | | | | | | | | | | | | Adds a new rule: new_http_archive( name = "whatever", url = "http://www.github.com/google/bazel-tools/my-tools.zip", sha256 = "...", build_file = "my/tools/objc.BUILD", ) This will download & unzip my-tools.zip, put a WORKSPACE file in its root, and link the provided BUILD file into its root. -- MOS_MIGRATED_REVID=88941267
* Fix typo in JDK apt-get line in install.mdGravatar Ross Light2015-03-20
| | | | | -- MOS_MIGRATED_REVID=88940266
* Add autogenerated directories to .gitignoreGravatar Kristina Chodorow2015-03-20
| | | | | | | See http://stackoverflow.com/questions/25715898/whats-the-difference-between-git-ignoring-directory-and-directory. tools and third_party are symlinks, not directories. -- MOS_MIGRATED_REVID=88938443
* Add joda_time with an underscoreGravatar Francois-Rene Rideau2015-03-18
| | | | | This is the first part of a rename to fit common bazel convention. joda-time with a dash will be removed when the code is synchronized.
* Remove smart quotes imported from Docs, which cause problems with Markdown ↵Gravatar Googler2015-03-18
| | | | | | | processing. -- MOS_MIGRATED_REVID=88933762
* Set LDFLAGS whether or not fromhost/BUILD existsGravatar Kristina Chodorow2015-03-18
| | | | | | | Change-Id: Ib5d40a02826919ea675a4c4ebc7c409dbbc4ce6f -- MOS_MIGRATED_REVID=88932526
* Skylark: Document string slicing in documentation.Gravatar Laurent Le Brun2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88930584
* Skylark: New error message in the lexer when an unsupported Python keyword ↵Gravatar Laurent Le Brun2015-03-18
| | | | | | | is used. -- MOS_MIGRATED_REVID=88930203
* Lift differences between Skylark and BUILD evaluation, wrt to concatenation.Gravatar Laurent Le Brun2015-03-18
| | | | | | | In particular, struct, dict and set addition work like in Skylark files. -- MOS_MIGRATED_REVID=88929558
* Open-source unittest.bashGravatar Damien Martin-Guillerez2015-03-18
| | | | | | | | | This is part of the shell test infrastructure for Bazel. It creates test suites in Bazel shell. Handling the test ouputs efficiently for making test summaries. -- MOS_MIGRATED_REVID=88929067
* Ensure docgen_bin exit status propagates in Bazel build.Gravatar Han-Wen Nienhuys2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88927024
* Skylark: Update error message when 'native' module cannot be accessed.Gravatar Laurent Le Brun2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88925875
* Skylark: Define dict iteration order (sorted by key).Gravatar Laurent Le Brun2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88924033
* Test execution time warning contains target name. The rest of the message is ↵Gravatar Googler2015-03-18
| | | | | | | shortened. -- MOS_MIGRATED_REVID=88922152
* Update instructions for installing JDK 8 on Ubuntu Trusty.Gravatar Damien Martin-Guillerez2015-03-18
| | | | | | | | The previous instruction were valid only for Ubuntu Utopic whereas the current LTS is Ubuntu Trusty. -- MOS_MIGRATED_REVID=88922012
* add OutputGroupProvider.DEFAULT_GROUPS for commonly built groupsGravatar Michajlo Matijkiw2015-03-18
| | | | | | | | | unit tests and main code have fallen out of sync a few times, so consolidating the defaults here to make mistakes harder later on. one could argue this also gives a little better mental locality. -- MOS_MIGRATED_REVID=88921641
* Add support of aspects to blaze query.Gravatar Marian Lobur2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88917871
* Clarify the documentation of the 'deps' operator of Blaze Query. It mentions ↵Gravatar Googler2015-03-18
| | | | | | | explicitly that it doesn't return 'buildfiles' (BUILD files, Skylark files and subincludes). -- MOS_MIGRATED_REVID=88917116
* Remove "obsolete" and "default_obsolete" from the BUILD language.Gravatar Greg Estren2015-03-18
| | | | | | | | Anyone who needs this kind of functionality in the future can redefine it through user-defined constraints. -- MOS_MIGRATED_REVID=88871811
* Constraints: implement "fulfills". Details are describedGravatar Greg Estren2015-03-18
| | | | | | | in -- MOS_MIGRATED_REVID=88869446
* Add more descriptive text indicating what Bazel is good for.Gravatar Googler2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88868751
* Description redacted.Gravatar Googler2015-03-18
| | | | | -- MOS_MIGRATED_REVID=88866474
* On-the-fly target pattern resolution in SkyQueryEnvironmentGravatar Mark Schaller2015-03-18
| | | | | | | | | | | | | Moves pattern resolving logic from TargetPatternFunction.Resolver to a top level class. Adds a layer of abstraction to the Resolver implementation enabling it to be backed by either an Environment or a Graph, for use in SkyFunction evaluation or on-the-fly evaluation, respectively. Finally, SkyQueryEnvironment#preloadOrThrow now checks to see if each target pattern exists in the graph, and any that don't will be resolved on-the-fly. -- MOS_MIGRATED_REVID=88861201